コード例 #1
0
        public void Ex8Test_MultipleResults()
        {
            string startingChar = "N";
            string endingChar   = "i";

            string[] expectedResult = { "Nairobi", "New Delhi" };

            ExercisesPart1 exercises = new ExercisesPart1();

            string[] actualResult = exercises.Ex8(startingChar, endingChar);

            Assert.IsTrue(actualResult.SequenceEqual(expectedResult));
        }
コード例 #2
0
        public void Ex8Test()
        {
            string startingChar = "P";
            string endingChar   = "S";

            string[] expectedResult = { "Paris" };

            ExercisesPart1 exercises = new ExercisesPart1();

            string[] actualResult = exercises.Ex8(startingChar, endingChar);

            Assert.IsTrue(actualResult.SequenceEqual(expectedResult));
        }