Example #1
0
        public void PrintTest()
        {
            Word testWord = new Word("testWord");
            string result = testWord.Print();
            string expected = "testWord";

            Assert.AreEqual(expected,result);
        }
Example #2
0
        public void IsLettersOnlyTrueTest()
        {
            Word testWord = new Word("testWord");
            bool result = testWord.IsLettersOnly(testWord.Content);
            bool expected = true;

            Assert.AreEqual(expected, result);
        }
Example #3
0
 public void IsLettersOnlyFalseWithSpecialSymbolTest()
 {
     Word testWordWithSpecialSymbol = new Word("test{Word}");
     testWordWithSpecialSymbol.IsLettersOnly(testWordWithSpecialSymbol.Content);
 }
Example #4
0
 public void IsLettersOnlyFalseWithWhiteSpaceTest()
 {
     Word testWordWithWhiteSpace = new Word("test Word");
     testWordWithWhiteSpace.IsLettersOnly(testWordWithWhiteSpace.Content);
 }
Example #5
0
 public void IsLettersOnlyFalseWithNumberTest()
 {
     Word testWordWithNumber = new Word("test1Word");
     testWordWithNumber.IsLettersOnly(testWordWithNumber.Content);
 }