public void Test_WeekNumber_ToString_4()
        {
            var x = new WeekNumber(new List <int> {
                1, 4, 5, 6, 8, 9, 10
            });

            Assert.AreEqual(x.ToString(), "1,4-6,8-10");
        }
        public void Test_WeekNumber_ToString_3()
        {
            var x = new WeekNumber(new List <int> {
                1, 4, 5, 6
            });

            Assert.AreEqual(x.ToString(), "1,4-6");
        }
        public void Test_WeekNumber_ToString_0()
        {
            var x = new WeekNumber(new List <int> {
                1, 3, 5
            });

            Assert.AreEqual("1,3,5", x.ToString());
        }
        public void Test_WeekNumber_ToString_1()
        {
            var x = new WeekNumber(new List <int> {
                1, 2, 3, 4, 5
            });

            Assert.AreEqual(x.ToString(), "1-5");
        }
Esempio n. 5
0
        public void Test_WeekNumber_ToString_5()
        {
            var x = new WeekNumber(new List <int> {
                1, 2, 3, 4, 8, 11, 12, 13, 14
            });

            Assert.AreEqual(x.ToString(), "1-4,8,11-14");
        }