Пример #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);
 }