示例#1
0
        public void INTEGER_RANGE_2_6_NOT_CONTAIN_Minus_1_1_6_10()
        {
            RangeConverter rangeConverter = new RangeConverter();

            // input
            string set    = "[2,6)";
            var    subSet = new List <int>()
            {
                -1, 1, 6, 10
            };
            bool resultExperated = false;

            // Test
            bool result = rangeConverter.IntegerContain(set, subSet);

            // Assert
            Assert.AreEqual(resultExperated, result);
        }
示例#2
0
        public void INTEGER_RANGE_2_6_CONTAIN_2_4()
        {
            RangeConverter rangeConverter = new RangeConverter();

            // input
            string set    = "[2,6)";
            var    subSet = new List <int>()
            {
                2, 4
            };
            bool resultExperated = true;

            // Test
            bool result = rangeConverter.IntegerContain(set, subSet);

            // Assert
            Assert.AreEqual(resultExperated, result);
        }