public void FailedEndgame() { var controller = new MazeViewController(); System.Web.Mvc.ViewResult result = (System.Web.Mvc.ViewResult)controller.FailedEndgame(MazeId); Assert.IsTrue(((MazeActionModel)result.Model).MazeId != Guid.Empty); }
public void IndexTest() { var controller = new MazeViewController(); System.Web.Mvc.ViewResult result = (System.Web.Mvc.ViewResult)controller.Index(); Assert.IsTrue(result.ViewData.Count == 2); }
public Controller() { _inputview = new InputView(); _mazeViewController = new MazeViewController(); _outputview = new OutputView(_mazeViewController); }