コード例 #1
0
        public void ReturnACollectionOfTags()
        {
            // Arrange
            var tagServiceMock = new Mock <ITagService>();

            ITagsHelper tagsHelper = new TagsHelper(tagServiceMock.Object);

            // Act
            ICollection <Tag> result = tagsHelper.CreateTags(null);

            // Assert
            CollectionAssert.AllItemsAreInstancesOfType(result, typeof(Tag));
        }