Ejemplo n.º 1
0
 public void SetField_ImProper_ShouldThrowException()
 {
     try
     {
         string result = MoodAnalyserfactory.SetField("HAPPY", "fe");
     }
     catch (moodanalysercustomException exception)
     {
         Assert.AreEqual("Field is not found", exception.Message);
     }
 }
Ejemplo n.º 2
0
 public void Setting_NullMessge_ShouldThrowException()
 {
     try
     {
         string result = MoodAnalyserfactory.SetField(null, "message");
     }
     catch (moodanalysercustomException exception)
     {
         Assert.AreEqual("Message should not be null", exception.Message);
     }
 }
Ejemplo n.º 3
0
        public void Given_HAPPYMessage_WithReflector_Should_ReturnHAPPY()
        {
            string result = MoodAnalyserfactory.SetField("HAPPY", "message");

            Assert.AreEqual("HAPPY", result);
        }