예제 #1
0
 static void Main(string[] args)
 {
     Example e = new Example();
       System.Console.WriteLine(e.WhatsTheWord());
       System.Console.WriteLine(e.IsTheWord("vird"));
       System.Console.WriteLine(e.IsTheWord("bird"));
 }
예제 #2
0
 public void WhatsTheWordTest()
 {
     Example example = new Example();
       string theWord = example.WhatsTheWord();
       Assert.IsTrue("bird" == theWord);
 }
예제 #3
0
 public void IsTheWordCorrectCasesAndTrim()
 {
     Example example = new Example();
       bool result = example.IsTheWord("  BIrD  ");
       Assert.IsTrue(result);
 }
예제 #4
0
 public void IsTheWordInCorrect()
 {
     Example example = new Example();
       bool result = example.IsTheWord("not the bird");
       Assert.IsFalse(result);
 }
예제 #5
0
 public void IsTheWordCorrect()
 {
     Example example = new Example();
       bool result = example.IsTheWord("bird");
       Assert.IsTrue(result);
 }