DateOnlyAssertions Class
Definition
Provides assertions for DateOnly values.
c#
public sealed class DateOnlyAssertions : ComparableAssertions<DateOnlyAssertions, DateOnly>Constructors
| Name | Description |
|---|---|
DateOnlyAssertions(DateOnly) | Provides assertions for DateOnly values. |
Methods
| Name | Description |
|---|---|
BeAfter(DateOnly) | Asserts that the DateOnly value is after the expected value. |
BeBefore(DateOnly) | Asserts that the DateOnly value is before the expected value. |
BeOnDayOfWeek(DayOfWeek) | Asserts that the DateOnly value falls on the expected day of the week. |
BeOnOrAfter(DateOnly) | Asserts that the DateOnly value is on or after the expected value. |
BeOnOrBefore(DateOnly) | Asserts that the DateOnly value is on or before the expected value. |