From e146fab81d42fe68363fe198c32ca2cda8060a96 Mon Sep 17 00:00:00 2001 From: jnm2 Date: Fri, 29 Sep 2023 16:31:26 -0400 Subject: [PATCH] Update test project dependencies --- src/AmbientTasks.Tests/AmbientTasks.Tests.csproj | 10 +++++----- src/AmbientTasks.Tests/AmbientTasksPostTests.cs | 2 +- .../RequireOnAllTestMethodsAttribute.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj b/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj index 4f744a2..dfa58fa 100644 --- a/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj +++ b/src/AmbientTasks.Tests/AmbientTasks.Tests.csproj @@ -6,11 +6,11 @@ - - - - - + + + + + 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();