コード例 #1
0
        public void ReturnPartialView()
        {
            //Arrange
            var coffeeType = "Latte";
            var visualizationsController = new VisualizationsController();

            //Act
            var result = visualizationsController.ShowCoffeeType(coffeeType);

            //Assert
            Assert.That(result, Is.InstanceOf <PartialViewResult>());
        }
コード例 #2
0
        public void ReturnPartialView()
        {
            //Arrange
            var condiment = "Milk";

            var visualizationsController = new VisualizationsController();

            //Act
            var result = visualizationsController.ShowCondiment(condiment);

            //Assert
            Assert.That(result, Is.InstanceOf <PartialViewResult>());
        }