Skip to content

DateOnlyAssertions Class ​

Definition ​

Provides assertions for DateOnly values.

c#
public sealed class DateOnlyAssertions : ComparableAssertions<DateOnlyAssertions, DateOnly>

View source

Constructors ​

NameDescription
DateOnlyAssertions(DateOnly)Provides assertions for DateOnly values.

Methods ​

NameDescription
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.