Esempio n. 1
0
        public void Test1()
        {
            var testCase = new LogicTestCase {
                Message = new int[] { 0, 1, 2, 3, 4 },
                Code    = new int[] { 1, 3 },
                Result  = true
            };

            testCase.Run(SpyChecker.MessageContainsSpy);
        }
Esempio n. 2
0
        public void Test4()
        {
            var testCase = new LogicTestCase
            {
                Message = new int[] { 0, 1, 2, 3, 100 },
                Code    = new int[] { 1, 0 },
                Result  = false //NOTE: check with requirements team if this test cases works as required
            };

            testCase.Run(SpyChecker.MessageContainsSpy);
        }
Esempio n. 3
0
        public void Test3()
        {
            var testCase = new LogicTestCase
            {
                Message = new int[] { 0, 1, 2, 3, 4 },
                Code    = new int[] { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 },
                Result  = false
            };

            testCase.Run(SpyChecker.MessageContainsSpy);
        }