Esempio n. 1
0
        public void Move()
        {
            // Arrange
            GameController controller = new GameController(ds);

            // Act
            //ViewResult result = controller.

            // Assert
            //IEnumerable<GameState> games = (IEnumerable<GameState>)result.Model;
        }
Esempio n. 2
0
        public void Index()
        {
            // Arrange
            GameController controller = new GameController(ds);

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            IEnumerable<GameState> games=(IEnumerable<GameState>)result.Model;
            Assert.AreEqual(gameId, games.First().GameId);
        }