Ejemplo n.º 1
0
        private static void CheckExclude <TValue>(Range <TValue> range1, Range <TValue> range2, params string[] representation)
            where TValue : IComparable <TValue>
        {
            var result = range1.Exclude(range2).ToArray();

            Assert.AreEqual(representation.Length, result.Length);

            for (var i = 0; i < result.Length; i++)
            {
                Assert.AreEqual(representation[i], result[i].DisplayValue());
            }
        }