Пример #1
0
        public void TestMethod2()
        {
            //Arrange
            MoodAnalyze moodAnalyze = new MoodAnalyze();
            //Act
            var result = moodAnalyze.AnalyzeMood("I am in Happy Mood");

            //Assert
            Assert.AreEqual("HAPPY", result);
        }
Пример #2
0
        public void TestMethod4(string message)
        {
            //Arrange
            MoodAnalyze moodAnalyze = new MoodAnalyze(message);
            //Act
            var result = moodAnalyze.AnalyzeMood();

            //Assert
            Assert.AreEqual("HAPPY", result);
        }
Пример #3
0
        public void TestMethod1()
        {
            //Arrange
            MoodAnalyze moodAnalyze = new MoodAnalyze();
            //Act
            var result = moodAnalyze.AnalyzeMood("I am in Sad Mood");

            //Assert
            Assert.AreEqual("SAD", result);
        }
Пример #4
0
 public void TestMethod6(string message)
 {
     try
     {
         //Arrange
         MoodAnalyze moodAnalyze = new MoodAnalyze(message);
         //Act
         var result = moodAnalyze.AnalyzeMood();
     }
     catch (MoodAnalyzeException e)
     {
         //Assert
         Assert.AreEqual("Mood should not be empty", e.Message);
     }
 }