From 08e1de0ac2af8c3894c957905a79f3e146ced6d1 Mon Sep 17 00:00:00 2001 From: steffenskov Date: Thu, 17 Apr 2025 12:28:26 +0200 Subject: [PATCH] chore: Upgrade to xUnit v3 --- .../ExtendedThreading.UnitTests.csproj | 46 +++++++++---------- .../MutexSlimTests.cs | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/ExtendedThreading.UnitTests/ExtendedThreading.UnitTests.csproj b/tests/ExtendedThreading.UnitTests/ExtendedThreading.UnitTests.csproj index c1d850d..779503b 100644 --- a/tests/ExtendedThreading.UnitTests/ExtendedThreading.UnitTests.csproj +++ b/tests/ExtendedThreading.UnitTests/ExtendedThreading.UnitTests.csproj @@ -1,29 +1,29 @@ - - net8.0 - enable - enable - true - false - true - + + net8.0 + enable + enable + true + false + true + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - + + + diff --git a/tests/ExtendedThreading.UnitTests/MutexSlimTests.cs b/tests/ExtendedThreading.UnitTests/MutexSlimTests.cs index a9d69ce..d4bf0ea 100644 --- a/tests/ExtendedThreading.UnitTests/MutexSlimTests.cs +++ b/tests/ExtendedThreading.UnitTests/MutexSlimTests.cs @@ -9,7 +9,7 @@ public void Wait_NotTaken_Continues() using var mutex = new MutexSlim(); // Act - mutex.Wait(); + mutex.Wait(TestContext.Current.CancellationToken); // Assert Assert.True(true); // Just testing wait didn't block