示例#1
0
        public void Contact_ShouldReturnsTrue_WhenViewResult_IsValid()
        {
            // Arrange
            var controller = new StoreController();

            // Act
            var result = controller.Contact() as ViewResult;

            // Act and Assert
            controller
            .WithCallTo(c => c.Contact())
            .ShouldRenderView("Contact");
        }