public void TestAnythingElse() // default { // Arrange Bob b = new Bob(); strCommunication = "Sorry"; // Act string strResult = b.Conversation(strCommunication); // Assert Assert.AreEqual("Whatever.", strResult); }
public void TestNothing() // null { // Arrange Bob b = new Bob(); strCommunication = ""; // Act string strResult = b.Conversation(strCommunication); // Assert Assert.AreEqual("Fine. Be that way!", strResult); }
public void TestYell() // ! { // Arrange Bob b = new Bob(); strCommunication = "Just, Shut up!"; // Act string strResult = b.Conversation(strCommunication); // Assert Assert.AreEqual("Whoa, Chill out!", strResult); }
public void TestYellnQuestion() // !? { // Arrange Bob b = new Bob(); strCommunication = "Oh God!, What the hell are you doing?"; // Act string strResult = b.Conversation(strCommunication); // Assert Assert.AreEqual("Calm down, I know what I'm doing!", strResult); }
public void TestQuestion() //? { // Arrange Bob b = new Bob(); strCommunication = "Can you do this job for me?"; // Act string strResult = b.Conversation(strCommunication); // Assert Assert.AreEqual("Sure.", strResult); }