public void givenMood_whenAnalysisMood_CreateObjectusingReflactionPassParametrizedConstructor() { object reflactObj = MoodAnalyserReflaction.CreateObjectUsingReflection("MoodAnalysers.moodAnalyser", "I am in Happy Mood"); moodAnalyser moodObj = new moodAnalyser(); bool actual = moodObj.Equals(reflactObj); Assert.AreEqual(false, actual); }
public void givenMood_whenAnalysisMood_CreateObjectusingReflactionNotPassProperParametrizedConstructor() { object reflactObj = MoodAnalyserReflaction.CreateObjectUsingReflection("MoodAnalysers.moodAnalyser", 123); Assert.AreEqual(MoodAnalyserException.ExceptionType.No_Class_Method, reflactObj); }