public void MoodAnalyserClassName_WhenImproper_UsingParametrizedConstructor_ShouldThrowExcpetion() { string expected = "Class not found"; try { object obj = MoodAnalyserOne.CreateMoodAnalyseUsingParameterizedConstructor("MoodAnalyserDay12.Mood", "MoodAnalyser"); } catch (MoodAnalyserCustomException exception) { Assert.AreEqual(expected, exception.Message); } }
public void MoodAnalyserClassName_ShouldReturnMoodAnalyserObject_UsingParametrizedConstructor() { object expected = new MoodAnalyser("HAPPY"); object obj = MoodAnalyserOne.CreateMoodAnalyseUsingParameterizedConstructor("MoodAnalyserDay12.MoodAnalyser", "MoodAnalyser"); expected.Equals(obj); }