コード例 #1
0
        public void TwoDimes()
        {
            CoinGame number         = new CoinGame();
            int      expectedResult = 2;
            int      coin           = 20;

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