Esempio n. 1
0
        public void DateEqualsReturnsFalseIfOtherIsDifferentValue()
        {
            c.Date date  = new c.Date(47);
            c.Date other = new c.Date(45);

            Assert.IsFalse(date.Equals(other));
        }
Esempio n. 2
0
        public void DateEqualsReturnsFalseIfOtherIsNotTypeOfDate()
        {
            c.Date date  = new c.Date(47);
            Task   other = new Task(() => { });

            Assert.IsFalse(date.Equals(other));
        }
Esempio n. 3
0
        public void DateEqualsReturnsTrueIfOtherIsSameValue()
        {
            c.Date date  = new c.Date(47);
            c.Date other = new c.Date(47);

            Assert.IsTrue(date.Equals(other));
        }
Esempio n. 4
0
        public void DateEqualsReturnsFalseIfOtherIsNull()
        {
            c.Date date  = new c.Date(47);
            c.Date other = null;

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