Beispiel #1
0
        public void Game_WithParameters_StoresInContext()
        {
            var solver = new SolverWorld();
            var ui     = new DummyUserInterface();
            var game   = new Game(solver, ui);

            Assert.Equals(game.Solver, solver);
            Assert.Equals(game.Ui, ui);
        }
Beispiel #2
0
 public void Game_WithoutSolver_Fails()
 {
     var ui = new DummyUserInterface();
     var _  = new Game(null, ui);
 }