public void TC2_1_NulltoHappy_WithException(string message)
        {
            //Access
            string       expected    = "Happy";
            MoodAnalyzer moodAnalyse = new MoodAnalyzer(message);

            //Act
            string mood = moodAnalyse.AnalyseMood_WithException(message);

            //Assert
            Assert.AreEqual(expected, mood);
        }
Exemple #2
0
        public void TestMethod2(string message)
        {
            //string expected = "Sad";
            string expected = "Happy";
            //string message = "I am in a Sad mood";
            //string message = "I am in a Happy mood";
            //string message = null;

            MoodAnalyzer moodAnalyse = new MoodAnalyzer(message);

            //Act
            string mood = moodAnalyse.AnalyseMood_WithException(message);

            //Assert
            Assert.AreEqual(expected, mood);
            //Assert.IsNull(mood);
        }