示例#1
0
        public void MonthEqualsReturnsFalseIfOtherIsDifferentValue()
        {
            c.Month month = new c.Month(47);
            c.Month other = new c.Month(45);

            Assert.IsFalse(month.Equals(other));
        }
示例#2
0
        public void MonthEqualsReturnsFalseIfOtherIsNotTypeOfMonth()
        {
            c.Month month = new c.Month(47);
            Task    other = new Task(() => { });

            Assert.IsFalse(month.Equals(other));
        }
示例#3
0
        public void MonthEqualsReturnsTrueIfOtherIsSameValue()
        {
            c.Month month = new c.Month(47);
            c.Month other = new c.Month(47);

            Assert.IsTrue(month.Equals(other));
        }
示例#4
0
        public void MonthEqualsReturnsFalseIfOtherIsNull()
        {
            c.Month month = new c.Month(47);
            c.Month other = null;

            Assert.IsFalse(month.Equals(other));
        }