public void GetOpponentOf_GivesOtherPlayer() { var player1 = new Player("dsa"); var player2 = new Player("dsaasda"); var match = new Match(player1, player2); Assert.AreEqual(player1, match.GetOpponentOf(player2)); Assert.AreEqual(player2, match.GetOpponentOf(player1)); }
public void GetOpponentOf_InputIsNotInMatch_Null() { var player1 = new Player("dsa"); var player2 = new Player("dsaasda"); var player3 = new Player("dsaasdaadsa"); var match = new Match(player1, player2); Assert.IsNull(match.GetOpponentOf(player3)); }