Ejemplo n.º 1
0
        public void GetPhrase_GetPhrase_String()
        {
            string     phrase        = "this is a phrase";
            Palindrome newPalindrome = new Palindrome(phrase, false);

            Assert.AreEqual(phrase, newPalindrome.GetPhrase());
        }
Ejemplo n.º 2
0
        public void SetTotal_SetTotal_string()
        {
            string     phrase        = "this is a phrase";
            Palindrome newPalindrome = new Palindrome(phrase, false);
            string     phrase2       = "This is a different phrase";

            newPalindrome.SetPhrase(phrase2);
            Assert.AreEqual(phrase2, newPalindrome.GetPhrase());
        }
Ejemplo n.º 3
0
        public void GetPhrase_GetsPhrase_True()
        {
            string     phrase         = "test";
            bool       test           = false;
            Palindrome testPalindrome = new Palindrome(phrase, test);
            string     result         = testPalindrome.GetPhrase();

            Assert.AreEqual(phrase, result);
        }
Ejemplo n.º 4
0
        public void SetPhrase_SetsPhrase_String()
        {
            string     phrase         = "test";
            bool       test           = false;
            Palindrome testPalindrome = new Palindrome(phrase, test);
            string     newPhrase      = "foobar";

            testPalindrome.SetPhrase(newPhrase);
            string result = testPalindrome.GetPhrase();

            Assert.AreEqual(newPhrase, result);
        }