public void ReAnalyze() { AlarmEntity alarm = new AlarmEntity("2", "2", SentimentType.POSITIVE, ENTITY); Phrase phrase = new Phrase("I like google", YESTERDAY, AUTHOR); phrase.AnalyzePhrase(new List <Entity> { ENTITY }, new List <Sentiment> { new Sentiment(SentimentType.POSITIVE, "I like") }); alarm.AnalyzePhrases(new List <Phrase> { phrase }); alarm.ReAnalyePhrases(new List <Phrase> { phrase }); Assert.AreEqual(alarm.PostCount, 1); }