public void Count_ReturnsCorrectView_True() { //Arrange RepeatCountersController controller = new RepeatCountersController(); //Act ActionResult countView = controller.Count("testWord", "testString"); //Assert Assert.IsInstanceOfType(countView, typeof(ViewResult)); }
public void Count_HasCorrectModelType_RepeatCounter() { //Arrange RepeatCountersController controller = new RepeatCountersController(); ViewResult countDataType = controller.Count("testWord", "testString") as ViewResult; //Act var result = countDataType.ViewData.Model; //Assert Assert.IsInstanceOfType(result, typeof(RepeatCounter)); }