public void TestRosterSwap(int p1, int p2, bool success) { SetPlayers(); var roster = new Roster(players); Player starter = roster.GetPlayer(p1); Player newGuy = roster.GetPlayer(p2); roster.SwapPlayers(starter, newGuy); Assert.AreNotEqual(starter, newGuy); Assert.AreNotEqual(starter, roster.GetPlayer(p1)); Assert.AreEqual(newGuy, roster.GetPlayer(p1)); }
public void SwapPlayers(int s1, int s2) { roster.SwapPlayers(roster.GetPlayer(s1), roster.GetPlayer(s2)); }