public void TestMethod4() { try { string message = null; MoodAnalyzer moodAnalyse = new MoodAnalyzer(message); string mood = moodAnalyse.AnalyseMood_withCustomException(message); } catch (MoodAnalyzerCustomException e) { Assert.AreEqual("Mood should not be null", e.Message); } }
public void TC3_2_EmptyException() { try { string message = ""; MoodAnalyzer moodAnalyse = new MoodAnalyzer(message); string mood = moodAnalyse.AnalyseMood_withCustomException(message); } catch (MoodAnalyzerCustomException e) { Assert.AreEqual("Mood should not be empty", e.Message); } }