- assertAll
void assertAll(T[] assertions)
void assertAll(void delegate()[] assertions)
void assertAll(void function()[] assertions)
Asserts that all assertions pass.
- assertArrayEquals
void assertArrayEquals(T[] expected, U[] actual, string msg, string file, size_t line)
Asserts that the arrays are equal.
- assertArrayEquals
void assertArrayEquals(T[l1] expected, U[l2] actual, string msg, string file, size_t line)
Asserts that the static arrays are equal.
- assertArrayEquals
void assertArrayEquals(T[V] expected, U[V] actual, string msg, string file, size_t line)
- assertAssocArrayEquals
void assertAssocArrayEquals(T[V] expected, U[V] actual, string msg, string file, size_t line)
Asserts that the associative arrays are equal.
- assertContains
void assertContains(T[] array, T[] slice, string msg, string file, size_t line)
Asserts that the array contains the given slice
- assertEmpty
void assertEmpty(T actual, string msg, string file, size_t line)
Asserts that the value is empty.
- assertEquals
void assertEquals(T expected, U actual, string msg, string file, size_t line)
Asserts that the string values are equal.
- assertEquals
void assertEquals(T expected, U actual, string msg, string file, size_t line)
Asserts that the floating-point values are approximately equal.
- assertEquals
void assertEquals(T expected, U actual, string msg, string file, size_t line)
Asserts that the values are equal.
- assertEventually
void assertEventually(T probe, Duration timeout, Duration delay, string msg, string file, size_t line)
void assertEventually(bool delegate() probe, Duration timeout, Duration delay, string msg, string file, size_t line)
void assertEventually(bool function() probe, Duration timeout, Duration delay, string msg, string file, size_t line)
Checks a probe until the timeout expires. The assert error is produced
if the probe fails to return 'true' before the timeout.
- assertExists
void assertExists(T[len] haystack, T needle, string msg, string file, size_t line)
Asserts that a item exists inside the given static array
- assertExists
void assertExists(T[] haystack, T needle, string msg, string file, size_t line)
Asserts that the item exists inside the given array
- assertExists
void assertExists(R haystack, T needle, string msg, string file, size_t line)
Asserts that a item exists inside a range.
- assertExistsInArray
void assertExistsInArray(T haystack, U needle, string msg, string file, size_t line)
Asserts that the item exists inside the given array
- assertFalse
void assertFalse(T condition, string msg, string file, size_t line)
Asserts that a condition is false.
- assertNotEmpty
void assertNotEmpty(T actual, string msg, string file, size_t line)
Asserts that the value is not empty.
- assertNotNull
void assertNotNull(T actual, string msg, string file, size_t line)
Asserts that the value is not null.
- assertNotSame
void assertNotSame(T expected, U actual, string msg, string file, size_t line)
Asserts that the values are not the same.
- assertNull
void assertNull(T actual, string msg, string file, size_t line)
Asserts that the value is null.
- assertRangeEquals
void assertRangeEquals(R1 expected, R2 actual, string msg, string file, size_t line)
Asserts that the ranges are equal.
- assertSame
void assertSame(T expected, U actual, string msg, string file, size_t line)
Asserts that the values are the same.
- assertTrue
void assertTrue(T condition, string msg, string file, size_t line)
Asserts that a condition is true.
- description
string description(Throwable throwable)
Returns a description of the throwable.
- description
string description(string expected, string actual)
Returns a description of the difference between the strings.
- diff
Tuple!(string, string) diff(string lhs, string rhs)
Returns a pair of strings that highlight the difference between lhs and rhs.
- expectThrows
T expectThrows(E expression, string msg, string file, size_t line)
Asserts that the expression throws the specified throwable.
- fail
void fail(string msg, string file, size_t line)