Beispiel #1
0
        public void TwoDimes()
        {
            CoinGame number         = new CoinGame();
            int      expectedResult = 2;
            int      coin           = 20;

            number.GettingChange(coin);
            Assert.AreEqual(expectedResult, number.GetDimes());
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void StartGame()
 {
     _currentGame?.Dispose();
     _currentGame = new CoinGame(_eventHub, null);
     _currentGame.StartGame();
 }
Beispiel #4
0
 // Start is called before the first frame update
 private void Awake()
 {
     instance = this;
 }