public void MatchAnlegenUndSpielerHinzufügen() { //Arrange var match = new MtgMatch(); var player1 = new Player(); var player2 = new Player(); //Act match.AddPlayerToMatch(player1); match.AddPlayerToMatch(player2); //Assert Assert.AreEqual(2, match.ListOfPlayers.Count); }
public void SpielerAusMatchEntfernen(string name, string startingLifeTotal) { //Arrange var match = new MtgMatch(); var player1 = new Player(name); var player2 = new Player(name); //Act match.AddPlayerToMatch(player1); match.AddPlayerToMatch(player2); match.RemovePlayerFromMatch(player1); match.RemovePlayerFromMatch(player2); //Assert Assert.AreEqual(0, match.ListOfPlayers.Count); }