Beispiel #1
0
        public void ScoreResult_ReturnsCorrectView_True()
        {
            //Arrange
            WordsController controller = new WordsController();

            //Act
            ActionResult scoreResultView = controller.ScoreResult("testWord");

            //Assert
            Assert.IsInstanceOfType(scoreResultView, typeof(ViewResult));
        }
Beispiel #2
0
        public void ScoreResult_HasCorrectModelType_RepeatCounter()
        {
            //Arrange
            WordsController controller          = new WordsController();
            ViewResult      scoreResultDataType = controller.ScoreResult("testWord") as ViewResult;

            //Act
            var result = scoreResultDataType.ViewData.Model;

            //Assert
            Assert.IsInstanceOfType(result, typeof(Word));
        }