public void AllOtherStatementsYieldAWhatever() { LazyTeenager teen = new LazyTeenager(); string response = teen.SayTo("I have to go to the store."); Assert.That(response, Is.EqualTo("Whatever.")); }
public void IfDidntSayAnythingSaysFineBeThatWay() { LazyTeenager teen = new LazyTeenager(); string response = teen.SayTo(""); Assert.That(response, Is.EqualTo("Fine. Be that way!")); }
public void IfYelledAtSaysWhoaChillOut() { // Arrange LazyTeenager teen = new LazyTeenager(); // Act string response = teen.SayTo("Watch out for that car!"); // Assert Assert.That(response, Is.EqualTo("Whoa, chill out!")); }
public void IfAskedAQuestionReceiveSureAnswer(string question) { // Arrange LazyTeenager teen = new LazyTeenager(); // Act string response = teen.SayTo(question); // Assert Assert.That(response, Is.EqualTo("Sure.")); }