Ejemplo n.º 1
0
        public void NotEquals()
        {
            var first = new DateRange(this.date1900, this.date2000);
            var second = new DateRange(this.date1900, this.date1950);

            Assert.IsTrue(first != second, "Operator inequality");
            Assert.IsFalse(first.Equals(second), "Method inequality");
        }
Ejemplo n.º 2
0
        public void Equals()
        {
            var first = new DateRange(this.date1900, this.date2000);
            var second = new DateRange(this.date1900, this.date2000);

            Assert.IsTrue(first == second, "Operator equality");
            Assert.IsTrue(first.Equals(second), "Method equality");
        }