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