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); }
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); }
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); }