Exemple #1
0
        public static Arbitrary <Money <T> > Get <T>() where T : IEquatable <T>
        {
            var gen = from money in MoneyGenerators.Generator <T>()
                      where money != null
                      select money;

            return(Arb.From(gen, MoneyGenerators.Shrinker));
        }
Exemple #2
0
 public static Arbitrary <Money <T> > Get <T>() where T : IEquatable <T>
 => Arb.From(MoneyGenerators.Generator <T>(), MoneyGenerators.Shrinker);