コード例 #1
0
ファイル: UnitTest.cs プロジェクト: sankethbhat/TwitterToDB
        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
ファイル: UnitTest.cs プロジェクト: sankethbhat/TwitterToDB
        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");
        }