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