예제 #1
0
        public void StringToArray_ChangeAStringToAnArray_True()
        {
            L1337speak newL1337speak = new L1337speak("This is Elite.");

            char[] array        = newL1337speak.StringToArray();
            char[] correctArray = { 'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'E', 'l', 'i', 't', 'e', '.' };
            CollectionAssert.AreEqual(correctArray, array);
        }
예제 #2
0
        public void StoZ_ChangesStoZ_true()
        {
            L1337speak newL1337speak = new L1337speak("I am Elites.");

            char[] array = newL1337speak.StringToArray();
            L1337speak.StoZ(array);
            string newString     = string.Join("", array);
            string correctString = "I am Elitez.";

            Assert.AreEqual(correctString, newString);
        }
예제 #3
0
        public void TtoSeven_ChangesTtoSeven_true()
        {
            L1337speak newL1337speak = new L1337speak("I am Elite.");

            char[] array = newL1337speak.StringToArray();
            L1337speak.TtoSeven(array);
            string newString     = string.Join("", array);
            string correctString = "I am Eli7e.";

            Assert.AreEqual(correctString, newString);
        }
예제 #4
0
        public void ItoOne_ChangesItoNumberOne_true()
        {
            L1337speak newL1337speak = new L1337speak("I am Elite.");

            char[] array = newL1337speak.StringToArray();
            L1337speak.IToOne(array);
            string newString     = string.Join("", array);
            string correctString = "1 am Elite.";

            Assert.AreEqual(correctString, newString);
        }
예제 #5
0
        public void OtoZero_ChangesOtoNumberZero_true()
        {
            L1337speak newL1337speak = new L1337speak("This is not Elite.");

            char[] array = newL1337speak.StringToArray();
            L1337speak.OToZero(array);
            string newString     = string.Join("", array);
            string correctString = "This is n0t Elite.";

            Assert.AreEqual(correctString, newString);
        }
예제 #6
0
        public void EtoThree_ChangesEtoNumberThree_true()
        {
            L1337speak newL1337speak = new L1337speak("This is Elite.");

            char[] array = newL1337speak.StringToArray();
            L1337speak.EToThree(array);
            string newString     = string.Join("", array);
            string correctString = "This is 3lit3.";

            Assert.AreEqual(correctString, newString);
        }