コード例 #1
0
 public void FrenchLeague1PointSystem_PointTotalConstructorTest()
 {
     Club leClub = new Club("France");
     Match match = new Match(leClub,"home"); // TODO: initialisez à une valeur appropriée
     bool home = true;
     FrenchLeague1PointSystem.PointTotal target = new FrenchLeague1PointSystem.PointTotal(match, home);
     Assert.ReferenceEquals(target, "France");
     Assert.ReferenceEquals(target, home);
 }
コード例 #2
0
 public void IncrementTest()
 {
     int value = 4;
     int add_value = 4;
     FrenchLeague1PointSystem.PointTotal target = new FrenchLeague1PointSystem.PointTotal(new Match(value, "home"), true);
     FrenchLeague1PointSystem.PointTotal with = new FrenchLeague1PointSystem.PointTotal(new Match(add_value, "home"), true);
     target.Increment(with);
     Assert.AreEqual(target.CompareTo(0), value + add_value);
 }
コード例 #3
0
 public void CompareToTest()
 {
     int value = 4;
     FrenchLeague1PointSystem.PointTotal target = new FrenchLeague1PointSystem.PointTotal(new Match(value, "home"), true);
     int expected = 0;
     int actual;
     actual = target.CompareTo(value);
     Assert.AreEqual(expected, actual);
 }