Exemple #1
0
        public void ReviewNewShouldReturnReviewFormView()
        {
            //Arrange
            var mock       = new Mock <IReviewRepository>();
            var controller = new ReviewController(mock.Object);

            //Act
            var actual = controller.New() as ViewResult;

            //Assert
            Assert.IsNotNull(actual);
            Assert.AreEqual(actual.ViewName, "ReviewForm");
        }