示例#1
0
        public void GetPointsMixed()
        {
            int[]     expectedIntegers = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            string    rangeStr         = "(-1, 9]";
            KataRange range            = new KataRange(rangeStr);

            Assert.Equal(expectedIntegers, range.getAllPoints());
        }
示例#2
0
        public void GetPointsOpen()
        {
            int[]     expectedIntegers = new int[] { 3, 4, 5, 6, 7, 8 };
            string    rangeStr         = "(2, 9)";
            KataRange range            = new KataRange(rangeStr);

            Assert.Equal(expectedIntegers, range.getAllPoints());
        }