public void Is_WithMessage_ConditionIsNull() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); Action work = () => target.Is(null, "Testing {0} {1}", 1, 2); work.ShouldThrowArgumentNullException(); }
public void Is_WithMessage_IsFalse() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); Action work = () => target.Is(x => x < 0, "Testing {0} {1}", 1, 2); work.ShouldThrowArgumentException(); }
public void Is_ConditionIsNull() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); Action work = () => target.Is(null); work.ShouldThrowArgumentNullException(); }
public void Is_IsFalse() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); Action work = () => target.Is(x => x < 0); work.ShouldThrowArgumentException(); }
public void Is_WithMessage_IsTrue() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); target.Is(x => x > 0, "Testing {0} {1}", 1, 2); }
public void Is_IsTrue() { var target = new ArgumentConstraint <int>(new Argument <int>("Test", 10)); target.Is(x => x > 0); }