public void Setup()
 {
     _reader  = new MockConsoleReader();
     _writer  = new MockConsoleWriter();
     _player1 = new HumanPlayer(Constants.X, _reader, _writer);
     _player2 = new HumanPlayer(Constants.O, _reader, _writer);
 }
Example #2
0
 public void Setup()
 {
     _reader  = new MockConsoleReader();
     _writer  = new MockConsoleWriter();
     _board   = new Board(_writer, 3);
     _player1 = new HumanPlayer(Constants.X, _reader, _writer);
     _player2 = new HumanPlayer(Constants.O, _reader, _writer);
     _rules   = new Rules(3);
     _game    = new Game(_writer, _board, _player1, _player2, _rules);
 }
Example #3
0
 public void TearDown()
 {
     _writer = null;
     _board  = null;
 }
Example #4
0
 public void Setup()
 {
     _writer = new MockConsoleWriter();
     _board  = new Board(_writer, 3);
 }
Example #5
0
 public void Setup()
 {
     _writer = new MockConsoleWriter();
     _reader = new MockConsoleReader();
     _menu   = new Menu(_writer, _reader);
 }
Example #6
0
 public void Setup()
 {
     _writer   = new MockConsoleWriter();
     _board3x3 = new Board(_writer, 3);
     _rules3x3 = new Rules(3);
 }