Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 307 Bytes

File metadata and controls

13 lines (11 loc) · 307 Bytes

Except Attribute

Ensures that values from outside the specified list will be generated.

[Theory]
[AutoData]
public void ExceptAttributeUsage(
    [Except(DayOfWeek.Saturday, DayOfWeek.Sunday)] DayOfWeek workday)
{
    Assert.True(workday is >= DayOfWeek.Monday and <= DayOfWeek.Friday);
}