public void CanHandleEmptyText() { var scoreDictionary = new Dictionary <string, int> { { "foo", -1 } }; var analyzer = new RawNaiveSentimentAnalyzer(scoreDictionary); Assert.AreEqual(0, analyzer.GetSentimentScore("")); }
public void CanScoreNeutralText() { var scoreDictionary = new Dictionary <string, int> { { "foo", -1 }, { "bar", 1 } }; var analyzer = new RawNaiveSentimentAnalyzer(scoreDictionary); Assert.AreEqual(0, analyzer.GetSentimentScore("foo bar")); }