public void WindowsPerformanceLiasonTest_VerifySetGetNextValue() { WindowsPerformanceLiason underTest = new WindowsPerformanceLiason(); underTest.SetRawValue(CounterTestUtilities.TestCategoryName, CounterTestUtilities.TestCounterNumberOfItems64Name, 0); float initialValue = underTest.GetRawValue(CounterTestUtilities.TestCategoryName, CounterTestUtilities.TestCounterNumberOfItems64Name); Assert.AreEqual(0.0, initialValue, 0.001); // shouldn't need delta... underTest.SetRawValue(CounterTestUtilities.TestCategoryName, CounterTestUtilities.TestCounterNumberOfItems64Name, 10); float finalValue = underTest.GetRawValue(CounterTestUtilities.TestCategoryName, CounterTestUtilities.TestCounterNumberOfItems64Name); Assert.AreEqual(10.0, finalValue, 0.001); // shouldn't need delta }
public void WindowsPerformanceLiasonBoundsTest_VerifyGetRawValueEmptyCounterCheck() { WindowsPerformanceLiason underTest = new WindowsPerformanceLiason(); underTest.GetRawValue(CounterTestUtilities.TestCategoryName, string.Empty); }
public void WindowsPerformanceLiasonBoundsTest_VerifyGetRawValueEmptyCategoryCheck() { WindowsPerformanceLiason underTest = new WindowsPerformanceLiason(); underTest.GetRawValue(string.Empty, CounterTestUtilities.TestCounterNumberOfItems64Name); }