예제 #1
0
 public void IsValidTest()
 {
     Assert.That(test.IsValid(), Is.True);
     Assert.That((test | (TestEnum)8).IsValid(), Is.False);
     Assert.That(ConsoleColor.Blue.IsValid(), Is.True);
     Assert.That(((ConsoleColor)30).IsValid(), Is.False);
 }