public void DateOfResultTest() { Game target = new Game(); // TODO: Initialize to an appropriate value DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value DateTime actual; target.DateOfResult = expected; actual = target.DateOfResult; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void BlackPlayerTest() { Game target = new Game(); // TODO: Initialize to an appropriate value Player expected = null; // TODO: Initialize to an appropriate value Player actual; target.BlackPlayer = expected; actual = target.BlackPlayer; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void PairUp(Collection<Game> pairings, List<Player> playersToBePaired) { Boolean succes = false; if(playersToBePaired.Count != 0) { Player worstInRank = playersToBePaired.Last(); foreach (Player currentPlayer in playersToBePaired) { if (CanPlayAgainstPlayer(worstInRank, currentPlayer)) { Player[] p = DeterminePlayerColor(worstInRank, currentPlayer); Game game = new Game(p[0], p[1]); pairings.Add(game); playersToBePaired.Remove(worstInRank); playersToBePaired.Remove(currentPlayer); succes = true; break; } } if (!succes) { playersToBePaired.Remove(worstInRank); succes = true; } } if(succes) { PairUp(pairings, playersToBePaired); } }
public void GameConstructorTest() { Player wPlayer = null; // TODO: Initialize to an appropriate value Player bPlayer = null; // TODO: Initialize to an appropriate value Game target = new Game(wPlayer, bPlayer); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void RoundNumberTest() { Game target = new Game(); // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; target.RoundNumber = expected; actual = target.RoundNumber; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void IsInProgressTest() { Game target = new Game(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; target.IsInProgress = expected; actual = target.IsInProgress; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void GameConstructorTest1() { Game target = new Game(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public GameViewModel(Game game) { this.Game = game; }