Exemplo n.º 1
0
        public void ToLowerTest()
        {
            string OrginalCaseText = "LOweR CasE LetTErs ARe qUIet. 1234567890!@#$%^&*()_+-={}[]|\\:;'\"~`";
            string UpperCaseText   = "lower case letters are quiet. 1234567890!@#$%^&*()_+-={}[]|\\:;'\"~`";
            string result          = TextServiceLogic.CaseConvert(OrginalCaseText, 2);

            Assert.AreEqual(UpperCaseText, result);
        }
Exemplo n.º 2
0
        public void EmptyInputTest()
        {
            string OrginalCaseText = "";
            string UpperCaseText   = "";
            string result          = TextServiceLogic.CaseConvert(OrginalCaseText, 1);

            Assert.AreEqual(UpperCaseText, result);
        }
Exemplo n.º 3
0
        public void ToUpperTest()
        {
            string OrginalCaseText = "All caps means shouting. 1234567890!@#$%^&*()_+-={}[]|\\:;'\"~`";
            string UpperCaseText   = "ALL CAPS MEANS SHOUTING. 1234567890!@#$%^&*()_+-={}[]|\\:;'\"~`";
            string result          = TextServiceLogic.CaseConvert(OrginalCaseText, 1);

            Assert.AreEqual(UpperCaseText, result);
        }