Provides assertions against DateTime values.
More...
|
static void | IsInRange (DateTime test, DateTime min, DateTime max) |
| Tests if a DateTime value is within a provided range.
|
static void | IsInRange (DateTime test, int minYear, int minMonth, int minDay, int maxYear, int maxMonth, int maxDay) |
| Tests if a DateTime value is within the provided range by parts.
|
static void | IsInTimeRange (DateTime test, DateTime min, DateTime max) |
| Tests if a given DateTime value has the TIME component within the provided range.
|
Provides assertions against DateTime values.
◆ IsInRange() [1/2]
void PeanutButter.TestUtils.Generic.DateTimeAssert.IsInRange |
( |
DateTime | test, |
|
|
DateTime | min, |
|
|
DateTime | max ) |
|
static |
Tests if a DateTime value is within a provided range.
- Parameters
-
test | Value to test |
min | Minimum value required |
max | Maximum value required |
◆ IsInRange() [2/2]
void PeanutButter.TestUtils.Generic.DateTimeAssert.IsInRange |
( |
DateTime | test, |
|
|
int | minYear, |
|
|
int | minMonth, |
|
|
int | minDay, |
|
|
int | maxYear, |
|
|
int | maxMonth, |
|
|
int | maxDay ) |
|
static |
Tests if a DateTime value is within the provided range by parts.
- Parameters
-
test | Value to test |
minYear | Minimum year to test against |
minMonth | Minimum mont to test against |
minDay | Minimum day to test against |
maxYear | Maximum year to test against |
maxMonth | Maximum month to test against |
maxDay | Maximum day to test against |
◆ IsInTimeRange()
void PeanutButter.TestUtils.Generic.DateTimeAssert.IsInTimeRange |
( |
DateTime | test, |
|
|
DateTime | min, |
|
|
DateTime | max ) |
|
static |
Tests if a given DateTime value has the TIME component within the provided range.
- Parameters
-
test | DateTime value to test |
min | DateTime with minimum time to test with. Date part is ignored. |
max | DateTIme with maximum time to test with. Date part is ignored. |
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.Generic/DateTimeAssert.cs