Exemplo n.º 1
0
        public void Test_ReverseWords2_IsNull()
        {
            Q1     objInterview = new Q1();
            string sentence     = null;
            string expected     = "";
            string actual       = objInterview.ReverseWords2(sentence);

            Assert.AreEqual(actual, expected);
        }
Exemplo n.º 2
0
        public void Test_ReverseWords2()
        {
            Q1     objInterview = new Q1();
            string sentence     = "efficient more and safer smarter, agencies transit makes that technology the provide We";
            string expected     = "We provide the technology that makes transit agencies smarter, safer and more efficient";
            string actual       = objInterview.ReverseWords2(sentence);

            Assert.AreEqual(actual, expected);
        }