public void MoodAnalyserClassName_ShouldReturnMoodAnalyserObject() { string message = null; object expected = new MoodAnalyser(message); object obj = MoodAnalyserOne.CreateMoodAnalyse("MoodAnalyserDay12.MoodAnalyser", "MoodAnalyser"); expected.Equals(obj); }
public void MoodAnalyserClassName_WhenConstructorIsImproper_ShouldThrowMoodAnalyserException() { object obj = null; string message = null; string expected = "Method not found"; try { obj = MoodAnalyserOne.CreateMoodAnalyse("MoodAnalyserDay12.MoodAnalyser", "AnalyserMood"); } catch (MoodAnalyserCustomException exception) { Assert.AreEqual(expected, exception.Message); } }