public void DecrementHomeFouls_ShouldRemoveFoul() { //Arrange //Act _foulController.ResetAllFouls(); var fouls = _foulController.GetAllFouls(); _foulController.IncrementFouls(Team.Away); _foulController.IncrementFouls(Team.Away); _foulController.IncrementFouls(Team.Away); _foulController.DecrementFouls(Team.Away); //Assert Assert.AreEqual(0, fouls.HomeFouls()); Assert.AreEqual(2, fouls.AwayFouls()); }
private void BtnHomeFoulsMinus_Click(object sender, EventArgs e) { FoulController.DecrementFouls(Team.Home); }