Class Assert
A utility for making programming assertions.
Inherited Members
Namespace: NetTopologySuite.Utilities
Assembly: NetTopologySuite.dll
Syntax
public static class Assert
Methods
| Edit this page View SourceIsEquals(object, object)
Tests if two values are equal.
If the test fails, AssertionFailedException with no specific message is thrown.Declaration
public static void IsEquals(object expectedValue, object actualValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | expectedValue | The expected value |
| object | actualValue | The actual value |
IsEquals(object, object, string)
Declaration
public static void IsEquals(object expectedValue, object actualValue, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| object | expectedValue | The expected value |
| object | actualValue | The actual value |
| string | message | A message describing the failure condition. |
IsTrue(bool)
Tests if assertion is true
Declaration
public static void IsTrue(bool assertion)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | assertion | The assertion value |
IsTrue(bool, string)
Declaration
public static void IsTrue(bool assertion, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | assertion | The assertion value |
| string | message | A message describing the failure condition. |
ShouldNeverReachHere()
Throws an AssertionFailedException with no specific message text.
Declaration
public static void ShouldNeverReachHere()
ShouldNeverReachHere(string)
Throws an AssertionFailedException with message as specific message text.
Declaration
public static void ShouldNeverReachHere(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | A text describing the failure condition |