public void GetIndex_ReturnsViewResult()
        {
            // Arrange

            // Act
            var result = collectionController.Index();

            // Assert
            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
コード例 #2
0
 public new virtual void SetUp()
 {
     base.SetUp();
     CollectionViewModelGetter.Get(InvalidCollectionId).Returns(x =>
                                                                { throw new CollectionIdNotValidException(); });
     _result = (RedirectToRouteResult)CollectionController.Index(CollectionId);
 }
コード例 #3
0
 public new virtual void SetUp()
 {
     base.SetUp();
     CollectionViewModelGetter.Get(CollectionIdThatDoesExist).Returns(_collectionViewModel);
     _result = (ViewResult)CollectionController.Index(CollectionId);
 }