Class Assert
- Namespace
- NetTopologySuite.Utilities
- Assembly
- NetTopologySuite.dll
A utility for making programming assertions.
public static class Assert
- Inheritance
-
Assert
- Inherited Members
Methods
IsEquals(object, object)
Tests if two values are equal.
If the test fails, AssertionFailedException with no specific message is thrown.public static void IsEquals(object expectedValue, object actualValue)
Parameters
IsEquals(object, object, string)
public static void IsEquals(object expectedValue, object actualValue, string message)
Parameters
expectedValue
objectThe expected value
actualValue
objectThe actual value
message
stringA message describing the failure condition.
IsTrue(bool)
Tests if assertion
is true
public static void IsTrue(bool assertion)
Parameters
assertion
boolThe assertion value
IsTrue(bool, string)
public static void IsTrue(bool assertion, string message)
Parameters
ShouldNeverReachHere()
Throws an AssertionFailedException with no specific message text.
public static void ShouldNeverReachHere()
ShouldNeverReachHere(string)
Throws an AssertionFailedException with message
as specific message text.
public static void ShouldNeverReachHere(string message)
Parameters
message
stringA text describing the failure condition