Beispiel #1
0
        public void TestMethod6()
        {
            //Arrange
            string sentence = "Nemo is a clown fish, he has white and orange stripes. Nemo , come back!";
            string expected = "I found Nemo at 1!";
            //Act
            string actual = Challenge118.FindNemo(sentence);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void TestMethod5()
        {
            //Arrange
            string sentence = "Is it Nemos, Nemona, Nemoor or Garfield?";
            string expected = "I can't find Nemo :(";
            //Act
            string actual = Challenge118.FindNemo(sentence);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void TestMethod3()
        {
            //Arrange
            string sentence = "I am Nemo's dad Nemo senior .";
            string expected = "I found Nemo at 5!";
            //Act
            string actual = Challenge118.FindNemo(sentence);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #4
0
        public void TestMethod4()
        {
            //Arrange
            string sentence = "Oh, hello !";
            string expected = "I can't find Nemo :(";
            //Act
            string actual = Challenge118.FindNemo(sentence);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #5
0
        public void TestMethod2()
        {
            //Arrange
            string sentence = "N e m o is NEMO NeMo Nemo !";
            string expected = "I found Nemo at 8!";
            //Act
            string actual = Challenge118.FindNemo(sentence);

            //Assert
            Assert.AreEqual(expected, actual);
        }