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 } }; } }
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 } }; } } }
public static IEnumerable <object[]> RandomDateTime() => Enumerable.Repeat(1, 100).Select(_ => new object[] { Generators.GetRandomDateTime() });