Exemplo n.º 1
0
        public void Ex42_TestNegative2()
        {
            int index = Ex42.FindWord("The bras basah complex", "bRO");

            Debug.WriteLine("The bras basah complex, bRO => should return -1");
            Assert.AreEqual(-1, index);
        }
Exemplo n.º 2
0
        public void Ex42_TestNegative1()
        {
            int index = Ex42.FindWord("T", "bRO");

            Debug.WriteLine("T, FOX => should return -1");
            Assert.AreEqual(-1, index);
        }
Exemplo n.º 3
0
        public void Ex42_TestPositive1()
        {
            int index = Ex42.FindWord("The brown fox", "FOX");

            Debug.WriteLine("The brown fox, FOX => should return 10");
            Assert.AreEqual(10, index);
        }
Exemplo n.º 4
0
        public void Ex42_TestPositive2()
        {
            int index = Ex42.FindWord("The brown fox", "bRO");

            Debug.WriteLine("The brown fox, bRO => should return 4");
            Assert.AreEqual(4, index);
        }
Exemplo n.º 5
0
        public void Ex42_TestOneChar()
        {
            int index = Ex42.FindWord("The brown fox", "o");

            Debug.WriteLine("The brown fox, o => should return 6");
            Assert.AreEqual(6, index);
        }