Beispiel #1
0
 public void Statement_containing_question_mark()
 {
     Assert.Equal("Whatever.", Bob.Hey("Ending with ? means a question."));
 }
Beispiel #2
0
 public void Stating_something()
 {
     Assert.Equal("Whatever.", Bob.Hey("Tom-ay-to, tom-aaaah-to."));
 }
Beispiel #3
0
 public void Shouting_with_no_exclamation_mark()
 {
     Assert.Equal("Whoa, chill out!", Bob.Hey("I HATE YOU"));
 }
Beispiel #4
0
 public void Question_with_only_numbers()
 {
     Assert.Equal("Sure.", Bob.Hey("4?"));
 }
Beispiel #5
0
 public void Shouting_with_special_characters()
 {
     Assert.Equal("Whoa, chill out!", Bob.Hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"));
 }
Beispiel #6
0
 public void Multiple_line_question()
 {
     Assert.Equal("Whatever.", Bob.Hey("Does this cryogenic chamber make me look fat?\nno"));
 }
Beispiel #7
0
 public void Only_numbers()
 {
     Assert.Equal("Whatever.", Bob.Hey("1, 2, 3"));
 }
Beispiel #8
0
 public void Using_acronyms_in_regular_search()
 {
     Assert.Equal("Whatever.", Bob.Hey("It's OK if you don't want to go to the DMV."));
 }
Beispiel #9
0
 public void Forceful_questions()
 {
     Assert.Equal("Whoa, chill out!", Bob.Hey("WHAT THE HELL WERE YOU THINKING?"));
 }
Beispiel #10
0
 public void Asking_a_numeric_question()
 {
     Assert.Equal("Sure.", Bob.Hey("You are, what, like 15?"));
 }
Beispiel #11
0
 public void Talking_forcefully()
 {
     Assert.Equal("Whatever.", Bob.Hey("Let's go make out behind the gym!"));
 }
Beispiel #12
0
 public void Asking_a_question_with_a_trailing_space()
 {
     Assert.Equal("Sure.", Bob.Hey("Do I like my  spacebar  too much?  "));
 }
Beispiel #13
0
 public void Asking_a_question()
 {
     Assert.Equal("Sure.", Bob.Hey("Does this cryogenic chamber make me look fat?"));
 }
Beispiel #14
0
 public void Shouting()
 {
     Assert.Equal("Whoa, chill out!", Bob.Hey("WATCH OUT"));
 }
Beispiel #15
0
 public void Prattling_on()
 {
     Assert.Equal("Sure.", Bob.Hey("Wait! Hang on. Are you going to be OK?"));
 }
Beispiel #16
0
 public void Shouting_numbers()
 {
     Assert.Equal("Whoa, chill out!", Bob.Hey("1, 2, 3 GO!"));
 }
Beispiel #17
0
 public void Silence()
 {
     Assert.Equal("Fine. Be that way!", Bob.Hey(""));
 }
Beispiel #18
0
 public void Prolonged_silence()
 {
     Assert.Equal("Fine. Be that way!", Bob.Hey("    "));
 }