コード例 #1
0
        public void IndexTest()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var actionResult = controller.Index();

            // Assert
            Assert.IsNotNull(actionResult);
        }
コード例 #2
0
        public void CompareTest()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var viewResult = controller.Compare();

            // Assert
            // Assert.AreEqual("expected value", viewModel.SomeProperty);
            Assert.IsNotNull(viewResult);
        }
コード例 #3
0
        public void SupportTest()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var viewResult = controller.Support();
            var viewModel = viewResult.Model;

            // Assert
            // Assert.AreEqual("expected value", viewModel.SomeProperty);
            Assert.IsNotNull(viewResult);
        }
コード例 #4
0
        public void AboutTest()
        {
            // Arrange
            var controller = new HomeController();

            // Act
            var viewResult = controller.About();
            var viewModel = viewResult.Model;

            // Assert
            // Assert.AreEqual("expected value", viewModel.SomeProperty);
            Assert.IsNotNull(viewResult); // Todo: Make assertions, then remove this line
        }