shouldly library
A simple, extensible, readable library for assertions.
Classes
- AssertionScope
-
BaseAssertions<
T, K> - Base Matcher
- BoolAssertions
-
Contains a number of methods to assert that a
bool
is in the expected state. - DateTimeAssertions
-
Contains a number of methods to assert that a
DateTime
is in the expected state. - EnumAssertions
-
Contains a number of methods to assert that a
Enum
is in the expected state. - Execute
- Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure.
-
IterableAssertions<
T> -
Contains a number of methods to assert that a
Iterable
is in the expected state. -
MapAssertions<
TKey, TValue> -
Contains a number of methods to assert that a
Map
is in the expected state. - NumericAssertions
-
Contains a number of methods to assert that a
num
is in the expected state. - ObjectAssertions
-
Contains a number of methods to assert that a
Object
is in the expected state. - Should
- Static class for Should
- ShouldlySettings
- StringAssertions
-
Contains a number of methods to assert that a
String
is in the expected state.
Extensions
- BoolExtensions on bool?
- Contains boolean's extension methods for custom assertions in unit tests.
- DateTimeExtension on DateTime
- Contains DateTime's extension methods for custom assertions in unit tests.
- EnumExtension on Enum
- Contains Enum's extension methods for custom assertions in unit tests.
-
IterableExtensions
on Iterable<
T> ? - Contains Iterable's extension methods for custom assertions in unit tests.
-
MapExtensions
on Map<
TKey, TValue> - Contains Map's extension methods for custom assertions in unit tests.
- NumExtensions on num
- Contains Numbers's extension methods for custom assertions in unit tests.
- ObjectExtension on Object?
- Contains Object's extension methods for custom assertions in unit tests.
- StringExtensions on String?
- Contains String's extension methods for custom assertions in unit tests.
Exceptions / Errors
- FunctionExecutionException
- ShouldlyTestFailureError
- An exception thrown when a test assertion fails.