Beispiel #1
0
        public void Test05()
        {
            string input =
                @"10
5351871996120528
2248813659738258
2494359640703601
6044763399160734
3271269997212342
4276346434761561
2372239019637533
5624204919070546
9493965694520825
8629828692375133";
            string expectedOutput =
                @"578351320
404664464
20752136
999516029
743537718
323730244
174995256
593331567
136582381
305527433";
            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #2
0
        public void MyTest02()
        {
            string input =
                @"1
3001";

            string expectedOutput = Math.Pow(3001, 2).ToString();
            bool   result         = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #3
0
        public void MyTest02()
        {
            string input =
                @"1
27";
            string expectedOutput =
                @"Better Luck Next Time";

            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #4
0
        public void MyTest01()
        {
            string input =
                @"1
21";
            string expectedOutput =
                @"Go On Bob 6";

            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #5
0
        public void Test00()
        {
            string input =
                @"2
3
4";
            string expectedOutput =
                @"2
3";

            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #6
0
        public void MyTest01()
        {
            string input =
                @"1
200";
            int expectedSum = 0;

            for (int i = 1; i != 201; i++)
            {
                expectedSum += 2 * i - 1;
            }
            string expectedOutput = expectedSum.ToString();
            bool   result         = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
        public void Test01()
        {
            string input =
                @"9
9 8 6 7 3 5 4 1 2";
            string expectedOutput =
                @"1 2
4 5
1 2 3 4 5
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9";
            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #8
0
        public void MyTest02()
        {
            string input =
                @"4
10 11
11 10
17 19
19 17";
            string expectedOutput = String.Format(
                @"{0}
{1}
{2}
{3}", EasySum(10, 11), EasySum(11, 10), EasySum(17, 19), EasySum(19, 17));
            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #9
0
        public void Test01()
        {
            string input =
                @"4
1
3
5
11";
            string expectedOutput =
                @"-1
555
33333
55555533333";
            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #10
0
        public void Test03()
        {
            string input =
                @"1
10 6
3 1
10 1
10 1
3 1
1 8
5 2
3";
            string expectedOutput = @"6 -1 -1 -1 -1 -1 12 -1 12";
            bool   result         = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #11
0
        public void Test01()
        {
            string input =
                @"2
4 2
1 2
1 3
1
3 1
2 3
2";
            string expectedOutput =
                @"6 6 -1
-1 6";
            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
Beispiel #12
0
        public void Test01()
        {
            string input =
                @"9
9 8 6 7 3 5 4 1 2";

            string expectedOutput =
                @"8 9 6 7 3 5 4 1 2
6 8 9 7 3 5 4 1 2
6 7 8 9 3 5 4 1 2
3 6 7 8 9 5 4 1 2
3 5 6 7 8 9 4 1 2
3 4 5 6 7 8 9 1 2
1 3 4 5 6 7 8 9 2
1 2 3 4 5 6 7 8 9";

            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }
        public void Test02()
        {
            string input =
                @"10
2 3 4 5 6 7 8 9 10 1";

            string expectedOutput =
                @"2 3 4 5 6 7 8 9 10 10
2 3 4 5 6 7 8 9 9 10
2 3 4 5 6 7 8 8 9 10
2 3 4 5 6 7 7 8 9 10
2 3 4 5 6 6 7 8 9 10
2 3 4 5 5 6 7 8 9 10
2 3 4 4 5 6 7 8 9 10
2 3 3 4 5 6 7 8 9 10
2 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10";

            bool result = TestCaseLoader.TempFileTest(input, expectedOutput, Solution.Main);

            Assert.IsTrue(result);
        }