public void GivenAnyMood_ShouldReturnHappy() { string expected = "Happy"; string message = "I am in any mood"; MoodAnalysermain moodAnalyser = new MoodAnalysermain(message); string mood = moodAnalyser.AnalyseMood1(); Assert.AreEqual(expected, mood); }
public void GivenSadMood_ShouldReturnSad() { string expected = "Sad"; string message = "I am in Sad mood"; MoodAnalysermain moodAnalyser = new MoodAnalysermain(message); string mood = moodAnalyser.AnalyseMood1(); Assert.AreEqual(expected, mood); }
public void GivenEmptyMood_ShouldThrowException() { try { string message = string.Empty; MoodAnalysermain moodAnalyser = new MoodAnalysermain(message); string mood = moodAnalyser.AnalyseMood1(); } catch (MoodAnalyserException e) { Assert.AreEqual(MoodAnalyserException.ExceptionType.EnteredEmpty, e.TYPE); } }