示例#1
0
        public void CompareToTest2()
        {
            Prestation unePrestation      = new Prestation("XIX", new DateTime(2017, 9, 10, 12, 0, 0), new Intervenant("Dupont", "Jean"));
            Prestation uneAutrePrestation = new Prestation("XX", new DateTime(2015, 9, 10, 12, 0, 0), new Intervenant("Dupont", "Jean"));

            Assert.IsTrue(unePrestation.CompareTo(uneAutrePrestation) > 0);
        }
示例#2
0
        public void CompareToTest()
        {
            Prestation unePrestation      = new Prestation("XX", new DateTime(2015, 9, 10, 12, 0, 0), new Intervenant("Dupont", "Jean"));
            Prestation uneAutrePrestation = new Prestation("XX", new DateTime(2015, 9, 10, 12, 0, 0), new Intervenant("Dupont", "Jean"));

            Assert.AreEqual(0, unePrestation.CompareTo(uneAutrePrestation), "La somme doit être égal à 0");
        }