예제 #1
0
        public void MoodTest()
        {
            var    moodanalyzerproblem = new MoodAnalyzerProblem();
            string result = moodanalyzerproblem.Mood("I am in sad mood");

            Assert.AreEqual(result, "SAD");
        }
예제 #2
0
        public void Exception_Invalid()
        {
            var    moodanalyzerproblem = new MoodAnalyzerProblem(null);
            string result = moodanalyzerproblem.Mood();

            Assert.AreEqual(result, "HAPPY");
        }
예제 #3
0
        public void MoodTestHappy()
        {
            var    moodanalyzerproblem = new MoodAnalyzerProblem();
            string result = moodanalyzerproblem.Mood("I am in any mood");

            Assert.AreEqual(result, "HAPPY");
        }
예제 #4
0
        public void No_Parameter_Happy()
        {
            String messgae             = "I am in happy mood";
            var    moodanalyzerproblem = new MoodAnalyzerProblem(messgae);
            string result = moodanalyzerproblem.Mood();

            Assert.AreEqual(result, "HAPPY");
        }
예제 #5
0
        public void No_Parameter_Sad()
        {
            String messgae             = "I am in sad mood";
            var    moodanalyzerproblem = new MoodAnalyzerProblem(messgae);
            string result = moodanalyzerproblem.Mood();

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