Exemplo n.º 1
0
        public void Limit_ThrowException(int length)
        {
            Action act = () => CheckExtension.Limit(length);

            // Assert
            act
            .Should().Throw <Exception>()
            .WithMessage("*the decimal place limit cannot be negative*");
        }
Exemplo n.º 2
0
        public void Limit_NotThrow(int length)
        {
            Action act = () => CheckExtension.Limit(length);

            act.Should().NotThrow();
        }
Exemplo n.º 3
0
 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));
 }