Exemplo n.º 1
0
        public void Compare()
        {
            Incident incident2 = new Incident(clock, incidentChangeListener, "ID 2", 13, "Location", new DateTime(2009, 2, 1, 9, 30, 0), "Name", "Type",
                                              "Status", "Size", 150);

            Assert.IsTrue(incident.CompareTo(incident) == 0);
            Assert.IsTrue(incident.CompareTo(incident2) < 0);
            Assert.IsTrue(incident2.CompareTo(incident) > 0);
        }