コード例 #1
0
ファイル: CommonSteps.cs プロジェクト: softpsyche/TicTacToe
        public void GivenIStartANewGameWithTheFollowingMoves(Table table)
        {
            Invoke(() =>
            {
                var moves = ToMoves(table);

                Game = TicTacToeFactory.NewGame(moves);
            });
        }
コード例 #2
0
ファイル: CommonSteps.cs プロジェクト: softpsyche/TicTacToe
        public void WhenIStartANewGameWithTheFollowingMoves(string movesString)
        {
            Invoke(() =>
            {
                var moves = ToMoves(movesString);

                Game = TicTacToeFactory.NewGame(moves);
            });
        }
コード例 #3
0
ファイル: CommonSteps.cs プロジェクト: softpsyche/TicTacToe
 public void GivenIStartANewGameInTheFollowingState(Table table)
 {
     Invoke(() => Game = TicTacToeFactory.NewGame(ToPlausibleMoveListFromBoardState(table)));
 }
コード例 #4
0
ファイル: CommonSteps.cs プロジェクト: softpsyche/TicTacToe
 public void GivenIStartANewGame()
 {
     Invoke(() => Game = TicTacToeFactory.NewGame());
 }