public void IsNotEnabled() { AlarmEntity alarm = new AlarmEntity("2", "1", 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 }); Assert.IsFalse(alarm.IsEnabled()); }
public void IsEnabled() { AlarmEntity alarm = new AlarmEntity("1", "1", SentimentType.POSITIVE, ENTITY); Assert.IsFalse(alarm.IsEnabled()); }