Esempio 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*");
        }
Esempio n. 2
0
        public void Limit_NotThrow(int length)
        {
            Action act = () => CheckExtension.Limit(length);

            act.Should().NotThrow();
        }
Esempio 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));
 }