diff --git a/UnitTests/PInvoke/Kernel32/WinBaseTests.cs b/UnitTests/PInvoke/Kernel32/WinBaseTests.cs index 60a41358..644f796c 100644 --- a/UnitTests/PInvoke/Kernel32/WinBaseTests.cs +++ b/UnitTests/PInvoke/Kernel32/WinBaseTests.cs @@ -60,11 +60,9 @@ namespace Vanara.PInvoke.Tests public void GetActiveProcessorCountTest() { var gc = GetActiveProcessorGroupCount(); - if (gc == 0) - Assert.Fail(Win32Error.GetLastError().ToString()); + Assert.That(gc, ResultIs.Not.Value(0)); var pc = GetActiveProcessorCount(--gc); - if (pc == 0) - Assert.Fail(Win32Error.GetLastError().ToString()); + Assert.That(pc, ResultIs.Not.Value(0)); } [Test]