コード例 #1
0
 public void CountTotalGoalsPerLeg()
 {
     Leg leg = new Leg();
     leg.AddMatch(new Match("avantul", "gloria", 1, 1));
     leg.AddMatch(new Match("sageata", "concordia", 7, 1));
     leg.AddMatch(new Match("astra", "ceahlaul", 3, 1));
     Assert.AreEqual(14, leg.CountTotalGoals());
 }
コード例 #2
0
 public void AddNewMatch()
 {
     Leg leg = new Leg();
     leg.AddMatch(new Match("avantul", "gloria", 1, 1));
     Assert.AreEqual(1, leg.CountMatches());
 }