Updated test with shared code

pull/83/head
David Hall 2019-10-07 22:00:35 -06:00
parent bce17ac78f
commit 6aacdf6d91
1 changed files with 2 additions and 4 deletions

View File

@ -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]