Exemple #1
0
        public void TestMakeReverse()
        {
            string sample = "Test String";

            Assert.AreEqual("gnirtS tseT", ChangeMyString.MakeReverse(sample));
        }
Exemple #2
0
        public void TestMakeAllUpperCase()
        {
            string sample = "Test String";

            Assert.AreEqual("TEST STRING", ChangeMyString.MakeAllUpperCase(sample));
        }
Exemple #3
0
        public void TestMUCReturnsString()
        {
            string sample = "Test String";

            Assert.IsInstanceOfType(ChangeMyString.MakeAllUpperCase(sample), typeof(string));
        }
Exemple #4
0
        public void TestMRReturnsString()
        {
            string sample = "Test String";

            Assert.IsInstanceOfType(ChangeMyString.MakeReverse(sample), typeof(string));
        }
 static void Main(string[] args)
 {
     Console.WriteLine("Hello World!");
     Console.WriteLine(ChangeMyString.makeAllUppercase("Hello World"));
     Console.WriteLine(ChangeMyString.makeReverse("Hello World"));
 }