Esempio n. 1
0
 /// <summary>
 /// /// Asserts that two singles are equal concerning a delta. If the
 /// expected value is infinity then the delta value is ignored.
 /// </summary>
 /// <param name="expected">The expected value</param>
 /// <param name="actual">The actual value</param>
 /// <param name="delta">The maximum acceptable difference between the
 /// the expected and the actual</param>
 static public void AssertEquals(float expected, float actual, float delta)
 {
     Assertion.AssertEquals(string.Empty, expected, actual, delta);
 }
Esempio n. 2
0
 /// <summary>Asserts that two ints are equal. If they are not
 /// an <see cref="AssertionException"/> is thrown.</summary>
 static public void AssertEquals(int expected, int actual)
 {
     Assertion.AssertEquals(string.Empty, expected, actual);
 }
Esempio n. 3
0
 /// <summary>
 /// /// Asserts that two doubles are equal concerning a delta. If the
 /// expected value is infinity then the delta value is ignored.
 /// </summary>
 /// <param name="expected">The expected value</param>
 /// <param name="actual">The actual value</param>
 /// <param name="delta">The maximum acceptable difference between the
 /// the expected and the actual</param>
 static public void AssertEquals(double expected, double actual, double delta)
 {
     Assertion.AssertEquals(string.Empty, expected, actual, delta);
 }