Exemple #1
0
 public void TypedPrecondition_HasViolatedTypedPrecondition_ViolatesPrecondition() =>
 Assert.That(HasViolatedTypedPrecondition, Violates.TypedPrecondition <ViolatesTestException>());
Exemple #2
0
 public void Precondition_HasViolatedPreconditionWithUserMessage_ViolatesPrecondition() =>
 Assert.That(HasViolatedPreconditionWithUserMessage, Violates.PreconditionSaying(UserMessage));