Ejemplo n.º 1
0
 public void PreconditionFalseWithCustomExceptionMessage()
 {
     Assert.That(() => Precondition.Requires(false, "A custom message"), Throws.ArgumentException.With.Message.EqualTo("A custom message"));
 }
Ejemplo n.º 2
0
 public void PreconditionTrue()
 {
     Assert.That(() => Precondition.Requires(true), Throws.Nothing);
 }
Ejemplo n.º 3
0
 public void PreconditionFalse()
 {
     Assert.That(() => Precondition.Requires(false), Throws.ArgumentException.With.Message.EqualTo("Precondition failed"));
 }