From eac5979101365b4369b57487d846c5216dbba199 Mon Sep 17 00:00:00 2001 From: John Lenz Date: Mon, 4 Aug 2025 11:41:05 -0500 Subject: [PATCH 1/2] Add an await to the test --- Program.cs | 6 +++++- global.json | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 global.json diff --git a/Program.cs b/Program.cs index 024f789..9a707c3 100644 --- a/Program.cs +++ b/Program.cs @@ -1,14 +1,18 @@ using System; using TUnit; +using System.Threading.Tasks; public class Test1 { [Test] - public void TestMethod1() + public async Task TestMethod1() { if (1 + 1 != 2) { throw new Exception("1 + 1 should equal 2"); } + + var x = 1 + 1; + await Assert.That(x).IsEqualTo(2); } } \ No newline at end of file diff --git a/global.json b/global.json new file mode 100644 index 0000000..f657889 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.100", + "rollForward": "latestMajor" + } +} From 673914f1b27bb4e4949d201fc471b998d0355742 Mon Sep 17 00:00:00 2001 From: John Lenz Date: Mon, 4 Aug 2025 11:45:31 -0500 Subject: [PATCH 2/2] remove accidental add of global.json, that isn't the problem --- global.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 global.json diff --git a/global.json b/global.json deleted file mode 100644 index f657889..0000000 --- a/global.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "sdk": { - "version": "9.0.100", - "rollForward": "latestMajor" - } -}