예제 #1
0
        public void Pay()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            //ViewResult result = controller.Pay(new SelectModel()) as ViewResult;

            // Assert
            //Assert.IsNotNull(result);
        }
예제 #2
0
        public void Index()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.AreEqual("Welcome to ASP.NET MVC!", result.ViewBag.Message);
        }