public void ShouldNotSplitMajor() { _penaltyList.Add(PenaltyCreator.CreateMajor(true)); var split = _penaltyList.SplitIntoMultiplePenalties(); Assert.AreEqual(1, split.Count()); }
public void FirstInFirstOut() { _penaltyBox.AddPenalties(new[] { PenaltyCreator.CreateMajor(false), PenaltyCreator.CreateMinor(false) }); Assert.AreEqual(PlayersOnIce.FiveOnThree, _penaltyBox.PlayersOnIce); }
public void MinorAndMajorShouldBeFiveOnThree() { _penaltyBox.AddPenalties(new[] { PenaltyCreator.CreateMajor(false), PenaltyCreator.CreateMinor(false) }); Assert.AreEqual(PlayersOnIce.FiveOnThree, _penaltyBox.PlayersOnIce); }