public void Change_Mood_Dynamically()
        {
            MoodAnalyserFactory <MoodAnalyser> factory = new MoodAnalyserFactory <MoodAnalyser>();
            dynamic result = factory.ChangeTheMood("Happy");

            Assert.AreEqual("HAPPY", result);
        }
 public void Null_Value_Should_Throw_Exception()
 {
     try
     {
         MoodAnalyserFactory <MoodAnalyser> factory = new MoodAnalyserFactory <MoodAnalyser>();
         dynamic result = factory.ChangeTheMood(null);
         Assert.AreEqual("HAPPY", result);
     }
     catch (MoodAnalyserException e)
     {
         Assert.AreEqual(MoodAnalyserException.TypeOfException.NULL_POINTER_EXCEPTION, e.exceptionType);
     }
 }