public static IEnumerable <object[]> DateTimeIntervalData()
 {
     for (int i = 0; i < 100; i++)
     {
         var n  = Generators.GetRandomDateTime();
         var n1 = Generators.GetRandomDateTime();
         if (n < n1)
         {
             yield return new object[] { n, n1 }
         }
         ;
         else
         {
             yield return new object[] { n1, n }
         };
     }
 }
Esempio n. 2
0
        public static IEnumerable <object[]> IntervalTestDate()
        {
            var v1 = Generators.GetRandomDateTime();
            var v2 = Generators.GetRandomDateTime();

            for (var i = 0; i < 100; i++)
            {
                if (v1 < v2)
                {
                    yield return new object[] { v1, v2 }
                }
                ;
                else
                {
                    yield return new object[] { v2, v1 }
                };
            }
        }
    }
Esempio n. 3
0
 public static IEnumerable <object[]> RandomDateTime() =>
 Enumerable.Repeat(1, 100).Select(_ => new object[] { Generators.GetRandomDateTime() });