diff --git a/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj b/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj index 8d16542..dfa58fa 100644 --- a/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj +++ b/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj @@ -1,16 +1,16 @@  - netcoreapp2.1;netcoreapp3.1;net5.0;net472 + net6.0;net472 Techsola - - - - - + + + + + diff --git a/src/AmbientTasks.Tests/AmbientTasksPostTests.cs b/src/AmbientTasks.Tests/AmbientTasksPostTests.cs index 0faefed..b2678d1 100644 --- a/src/AmbientTasks.Tests/AmbientTasksPostTests.cs +++ b/src/AmbientTasks.Tests/AmbientTasksPostTests.cs @@ -413,7 +413,7 @@ public static void Subsequent_invocations_by_SynchronizationContext_are_ignored_ } callCount.ShouldBe(0); - Should.Throw(postedAction); + Should.Throw(postedAction!); callCount.ShouldBe(1); postedAction.ShouldNotBeNull(); diff --git a/src/AmbientTasks.Tests/RequireOnAllTestMethodsAttribute.cs b/src/AmbientTasks.Tests/RequireOnAllTestMethodsAttribute.cs index 46dbc26..8266334 100644 --- a/src/AmbientTasks.Tests/RequireOnAllTestMethodsAttribute.cs +++ b/src/AmbientTasks.Tests/RequireOnAllTestMethodsAttribute.cs @@ -21,7 +21,7 @@ public void BeforeTest(ITest test) { var missingTypes = attributeTypes .Except( - from data in test.Method.MethodInfo.GetCustomAttributesData() + from data in test.Method!.MethodInfo.GetCustomAttributesData() select data.AttributeType) .ToList(); diff --git a/src/AmbientTasks/AmbientTasks.csproj b/src/AmbientTasks/AmbientTasks.csproj index 5b45f60..9ae4a63 100644 --- a/src/AmbientTasks/AmbientTasks.csproj +++ b/src/AmbientTasks/AmbientTasks.csproj @@ -26,7 +26,6 @@ - diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 05d1bc8..a2c8810 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -9,7 +9,7 @@ - +