Пример #1
0
        public void NotEquals()
        {
            AuthorAlarm alarm      = new AuthorAlarm("1", "1", SentimentType.POSITIVE, TimeMeasure.DAYS);
            AuthorAlarm otherAlarm = new AuthorAlarm("1", "1", SentimentType.NEGATIVE, TimeMeasure.DAYS);

            Assert.IsFalse(alarm.Equals(otherAlarm));
        }
Пример #2
0
        public void EqualsDbNull()
        {
            AuthorAlarm alarm = new AuthorAlarm("1", "1", SentimentType.POSITIVE, TimeMeasure.DAYS);

            Assert.IsFalse(alarm.Equals(DBNull.Value));
        }