public void TestMethod2() { //Arrange MoodAnalyze moodAnalyze = new MoodAnalyze(); //Act var result = moodAnalyze.AnalyzeMood("I am in Happy Mood"); //Assert Assert.AreEqual("HAPPY", result); }
public void TestMethod4(string message) { //Arrange MoodAnalyze moodAnalyze = new MoodAnalyze(message); //Act var result = moodAnalyze.AnalyzeMood(); //Assert Assert.AreEqual("HAPPY", result); }
public void TestMethod1() { //Arrange MoodAnalyze moodAnalyze = new MoodAnalyze(); //Act var result = moodAnalyze.AnalyzeMood("I am in Sad Mood"); //Assert Assert.AreEqual("SAD", result); }
public void TestMethod6(string message) { try { //Arrange MoodAnalyze moodAnalyze = new MoodAnalyze(message); //Act var result = moodAnalyze.AnalyzeMood(); } catch (MoodAnalyzeException e) { //Assert Assert.AreEqual("Mood should not be empty", e.Message); } }