public void ShouldThrowAtNegative() { var target = new AdditionalTimeoutInput { SuppliedInput = -1 }; var exception = Should.Throw <InputException>(() => target.Validate()); exception.Message.ShouldBe("Timeout cannot be negative."); }
public void ShouldHaveDefault() { var target = new AdditionalTimeoutInput { SuppliedInput = null }; var result = target.Validate(); result.ShouldBe(5000); }
public void ShouldAllowMillion() { var target = new AdditionalTimeoutInput { SuppliedInput = 1000000 }; var result = target.Validate(); result.ShouldBe(1000000); }
public void ShouldAllowZero() { var target = new AdditionalTimeoutInput { SuppliedInput = 0 }; var result = target.Validate(); result.ShouldBe(0); }