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