checkit.assertion

Members

Functions

shouldBeBetween
void shouldBeBetween(T value, U left, C right, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that value is between two values.

shouldBeBetweenOrEqual
void shouldBeBetweenOrEqual(T value, U left, C right, string message = null, string file = __FILE__, size_t line = __LINE__)

Used to assert that value is between or equal two values.

shouldBeContain
void shouldBeContain(T[] array, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that array is contain of specified value.

shouldBeEmpty
void shouldBeEmpty(in auto ref R rng, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that Range is empty.

shouldBeEmpty
void shouldBeEmpty(auto ref T aa, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that Associative array is empty.

shouldBeEqualJSON
void shouldBeEqualJSON(in string actual, in string expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that JSON object is equal.

shouldBeFalse
void shouldBeFalse(lazy T condition, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is equal to false.

shouldBeGreater
void shouldBeGreater(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is greater than another value.

shouldBeGreaterOrEqual
void shouldBeGreaterOrEqual(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is greater or equal than another value.

shouldBeIn
void shouldBeIn(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is in an array of specified values.

shouldBeInstanceOf
void shouldBeInstanceOf(U object, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that object is instance of class.

shouldBeLess
void shouldBeLess(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is less than another value.

shouldBeLessOrEqual
void shouldBeLessOrEqual(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is less or equal than another value.

shouldBeNotEmpty
void shouldBeNotEmpty(in auto ref R rng, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that Range is not empty.

shouldBeNotEmpty
void shouldBeNotEmpty(auto ref T aa, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that Associative array is not empty.

shouldBeNull
void shouldBeNull(in auto ref T value, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is equal to null.

shouldBeTrue
void shouldBeTrue(lazy T condition, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is equal to true.

shouldEqual
void shouldEqual(auto ref T value, auto ref U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is equal to another value.

shouldNotBeNull
void shouldNotBeNull(in auto ref T value, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is not equal to null.

shouldNotEqual
void shouldNotEqual(T value, U expected, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that one value is not equal to another value.

shouldNotThrow
void shouldNotThrow(lazy E condition, in string file = __FILE__, in size_t line = __LINE__)

Used for asserting that a expression will not throw an exception.

shouldRunLess
void shouldRunLess(lazy E condition, in Duration time, in string message = null, in string file = __FILE__, in size_t line = __LINE__)

Used to assert that expression should be run less duration

shouldThrow
void shouldThrow(lazy E condition, in string file = __FILE__, in size_t line = __LINE__)

Used for asserting that a expression will throw an exception.

shouldThrowWithMessage
void shouldThrowWithMessage(lazy E condition, in string message, in string file = __FILE__, in size_t line = __LINE__)

Used for asserting that a expression will throw an exception with message.

Meta

Authors

LLC CERERIS