Skip to content

DateOnlyAssertions.BeOnDayOfWeek Method ​

Definition ​

Asserts that the DateOnly value falls on the expected day of the week.

c#
public AssertionsChain<DateOnlyAssertions, DateOnly> BeOnDayOfWeek(DayOfWeek expected);

View source

Parameters ​

NameTypeDescription
expectedDayOfWeekThe expected day of the week.

Returns ​

AssertionsChain<DateOnlyAssertions, DateOnly>

An AssertionsChain<TAssertions, T> for chaining further assertions.