public void ShouldReturnResultWhenSearching()
        {
            // act
            var result = _sut.Search() as ViewResult;

            // assert
            Assert.IsNotNull(result);
        }
コード例 #2
0
        public void Search_WhenNavigateTo_ShouldReturnAViewResult()
        {
            // Arrange
            ApprenticeshipController controller = new ApprenticeshipController(null, null, null, null, null, new Mock <IProfileAStep>().Object, null, null);

            // Act
            ViewResult result = controller.Search() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }