예제 #1
0
        public void TestNegativeSentiment()
        {
            string sampleText = "Demonitization is an bad move, we should abolish it soon";
            var    sentiment  = SentimentIdentifier.GetSentiment(sampleText);

            Assert.AreEqual(sentiment.Type, "Negative");
        }
예제 #2
0
        public void TestPositiveSentiment()
        {
            string sampleText = "Demonitization is an good move, however its difficult to implement";
            var    sentiment  = SentimentIdentifier.GetSentiment(sampleText);

            Assert.AreEqual(sentiment.Type, "Positive");
        }