Пример #1
0
 public static IEnumerable <object[]> NonZero_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.NonZero_Unsigned(Convert),
                NumbersTestData.NonZero_Signed(Convert),
                NumbersTestData.NonZero_Signed_Limits(double.MinValue, double.MaxValue)));
 }
Пример #2
0
 public static IEnumerable <object[]> GreaterThan_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.GreaterThan_Unsigned(Convert),
                NumbersTestData.GreaterThan_Signed(Convert),
                NumbersTestData.GreaterThan_Limits(short.MinValue, short.MaxValue, 0)));
 }
Пример #3
0
 public static IEnumerable <object[]> BetweenOrEqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.BetweenOrEqualTo_Unsigned(Convert),
                NumbersTestData.BetweenOrEqualTo_Signed(Convert),
                NumbersTestData.BetweenOrEqualTo_Limits(short.MinValue, short.MaxValue, 0)));
 }
Пример #4
0
 public static IEnumerable <object[]> NonNegative_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.NonNegative(Convert),
                new[] { new object[] { 0.000001D, true } },
                new[] { new object[] { -0.000001D, false } }));
 }
Пример #5
0
 public static IEnumerable <object[]> NotEqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.NotEqualTo_Unsigned(Convert),
                NumbersTestData.NotEqualTo_Signed(Convert),
                NumbersTestData.NotEqualTo_Limits(decimal.MinValue, decimal.MaxValue, 0)));
 }
Пример #6
0
 public static IEnumerable <object[]> Positive_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.Positive_Unsigned(Convert),
                NumbersTestData.Positive_Signed(Convert),
                new[] { new object[] { 0.000001F, true } },
                new[] { new object[] { -0.000001F, false } }));
 }
Пример #7
0
 public static IEnumerable <object[]> NotEqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.NotEqualTo_Unsigned(Convert),
                NumbersTestData.NotEqualTo_Signed(Convert),
                NumbersTestData.NotEqualTo_Limits(double.MinValue, double.MaxValue, 0),
                new[] { new object[] { 0.999999D, 0D, true } },
                new[] { new object[] { 1.000001D, 0D, true } },
                new[] { new object[] { 1.123456D, 1.123456D, false } }));
 }
Пример #8
0
 public static IEnumerable <object[]> Between_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.Between_Unsigned(Convert),
                NumbersTestData.Between_Signed(Convert),
                NumbersTestData.Between_Limits(float.MinValue, float.MaxValue, 0),
                new[] { new object[] { 0.999999F, 1, 1.000001F, true } },
                new[] { new object[] { 0.999999F, 0.999999F, 1.000001F, false } },
                new[] { new object[] { 0.999999F, 1.000001F, 1.000001F, false } }));
 }
Пример #9
0
 public static IEnumerable <object[]> NonNegative_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.NonNegative(Convert)));
 }
Пример #10
0
 public static IEnumerable <object[]> Positive_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.Positive_Unsigned(Convert),
                NumbersTestData.Positive_Signed(Convert)));
 }
Пример #11
0
 public static IEnumerable <object[]> BetweenOrEqualTo_Should_ThrowException_When_MinLargerThanMax_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.Between_InvalidRange(Convert, short.MinValue, short.MaxValue)));
 }
Пример #12
0
 public static IEnumerable <object[]> Between_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.Between_Unsigned(Convert),
                NumbersTestData.Between_Limits(ulong.MinValue, ulong.MaxValue, 1UL)));
 }
Пример #13
0
 public static IEnumerable <object[]> GreaterThanOrEqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.GreaterThanOrEqualTo_Unsigned(Convert),
                NumbersTestData.GreaterThanOrEqualTo_Limits(ulong.MinValue, ulong.MaxValue, 1UL)));
 }
Пример #14
0
 public static IEnumerable <object[]> LessThanOrEqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.LessThanOrEqualTo_Unsigned(Convert),
                NumbersTestData.LessThanOrEqualTo_Limits(char.MinValue, char.MaxValue, 1)));
 }
Пример #15
0
 public static IEnumerable <object[]> EqualTo_Should_CollectError_Data()
 {
     return(RulesHelper.GetTestDataCombined(
                NumbersTestData.EqualTo_Unsigned(Convert),
                NumbersTestData.EqualTo_Limits(uint.MinValue, uint.MaxValue, 1U)));
 }