Beispiel #1
0
 public static IEnumerable <object[]> EqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetSetsCompilation(
                NumberDataHelper.EqualTo_Unsigned(_convert),
                NumberDataHelper.EqualTo_Limits(ushort.MinValue, ushort.MaxValue, 1U)
                ));
 }
Beispiel #2
0
 public static IEnumerable <object[]> CloseTo_MemberData()
 {
     return(RulesHelper.GetSetsCompilation(
                NumberDataHelper.EqualTo_Signed(_convert),
                NumberDataHelper.EqualTo_Unsigned(_convert),
                NumberDataHelper.EqualTo_Limits(double.MinValue, double.MaxValue, 0),
                new[] { new object[] { 0.999999d, 0d, false } },
                new[] { new object[] { 1.000001d, 0d, false } },
                new[] { new object[] { 1.123456d, 1.123456d, true } }
                ));
 }