public void TwoDimes() { CoinGame number = new CoinGame(); int expectedResult = 2; int coin = 20; number.GettingChange(coin); Assert.AreEqual(expectedResult, number.GetDimes()); }
public void CoinGame_GetP1MaxValue_GivenOrderedListAsc() { int[] coins = new int[6] { 1, 2, 3, 4, 5, 6 }; CoinGame game = new CoinGame(coins); int expectedResult = 12; game.SimulateCompleteGame_Player1First(); int actualResult = game.Player1; Assert.Equal(expectedResult, actualResult); }
public void StartGame() { _currentGame?.Dispose(); _currentGame = new CoinGame(_eventHub, null); _currentGame.StartGame(); }
// Start is called before the first frame update private void Awake() { instance = this; }