diff --git a/src/FlUnit.Documentation/wwwroot/md/roadmap.md b/src/FlUnit.Documentation/wwwroot/md/roadmap.md index 8d94b16..7596075 100644 --- a/src/FlUnit.Documentation/wwwroot/md/roadmap.md +++ b/src/FlUnit.Documentation/wwwroot/md/roadmap.md @@ -2,9 +2,9 @@ Proper issue tracking and a formal plan would be overkill, so the "roadmap" consists of just a bullet list to organise my thoughts: -Next up: +At the moment: -- Fix VSTest adapter so that the test assembly is loaded in a MetadataLoadContext when discovering tests. +- *Nothing at the moment - working on other projects*. On the to-do list for soon-ish: diff --git a/src/FlUnit/FlUnit.csproj b/src/FlUnit/FlUnit.csproj index 00ef48f..57e718e 100644 --- a/src/FlUnit/FlUnit.csproj +++ b/src/FlUnit/FlUnit.csproj @@ -65,7 +65,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/FlUnit/FunctionTest.cs b/src/FlUnit/FunctionTest.cs index d8939a9..eba694a 100644 --- a/src/FlUnit/FunctionTest.cs +++ b/src/FlUnit/FunctionTest.cs @@ -157,7 +157,7 @@ public async ValueTask AssertAsync() { await assert(testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); } @@ -344,7 +344,7 @@ public async ValueTask AssertAsync() { await assert(testCase.prereqs, testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); } @@ -488,7 +488,7 @@ public async ValueTask ActAsync() // i for "test case #", and (when there are multiple prereqs) an integer for the prequisite of that index. public string ToString(string format, IFormatProvider formatProvider) { - List nonTypeNames = new List(); + List nonTypeNames = new(); var tuple = prereqs as ITuple; for (var i = 0; i < tuple.Length; i++) @@ -553,7 +553,7 @@ public async ValueTask AssertAsync() { await assert(testCase.prereqs.Item1, testCase.prereqs.Item2, testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); } @@ -700,7 +700,7 @@ public async ValueTask ActAsync() // i for "test case #", and (when there are multiple prereqs) an integer for the prequisite of that index. public string ToString(string format, IFormatProvider formatProvider) { - List nonTypeNames = new List(); + List nonTypeNames = new(); var tuple = prereqs as ITuple; for (var i = 0; i < tuple.Length; i++) @@ -765,7 +765,7 @@ public async ValueTask AssertAsync() { await assert(testCase.prereqs.Item1, testCase.prereqs.Item2, testCase.prereqs.Item3, testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); } @@ -915,7 +915,7 @@ public async ValueTask ActAsync() // i for "test case #", and (when there are multiple prereqs) an integer for the prequisite of that index. public string ToString(string format, IFormatProvider formatProvider) { - List nonTypeNames = new List(); + List nonTypeNames = new(); var tuple = prereqs as ITuple; for (var i = 0; i < tuple.Length; i++) @@ -980,7 +980,7 @@ public async ValueTask AssertAsync() { await assert(testCase.prereqs.Item1, testCase.prereqs.Item2, testCase.prereqs.Item3, testCase.prereqs.Item4, testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); } @@ -1133,7 +1133,7 @@ public async ValueTask ActAsync() // i for "test case #", and (when there are multiple prereqs) an integer for the prequisite of that index. public string ToString(string format, IFormatProvider formatProvider) { - List nonTypeNames = new List(); + List nonTypeNames = new(); var tuple = prereqs as ITuple; for (var i = 0; i < tuple.Length; i++) @@ -1198,7 +1198,7 @@ public async ValueTask AssertAsync() { await assert(testCase.prereqs.Item1, testCase.prereqs.Item2, testCase.prereqs.Item3, testCase.prereqs.Item4, testCase.prereqs.Item5, testCase.invocationOutcome); } - catch (Exception e) when (!(e is ITestFailureDetails)) + catch (Exception e) when (e is not ITestFailureDetails) { throw new TestFailureException(e.Message, e.StackTrace, e); }