public void Limit_ThrowException(int length) { Action act = () => CheckExtension.Limit(length); // Assert act .Should().Throw <Exception>() .WithMessage("*the decimal place limit cannot be negative*"); }
public void Limit_NotThrow(int length) { Action act = () => CheckExtension.Limit(length); act.Should().NotThrow(); }
public double DoubleFromTo(double min = 0, double max = 1, int limit = 10) { max.BeGreaterThan(min); CheckExtension.Limit(limit); return(bogus.Value.DoubleFromTo(min, max, limit)); }