Ejemplo n.º 1
0
        public void TagNodeValue_provides_Item()
        {
            // ARRANGE

            var tag = DefaultTag();

            // ACT

            var result = new TagNode(tag).GetItem(this.ProviderContextMock.Object);

            // ASSERT

            Assert.Equal(tag.Id, result.Property <Guid>("Id"));
            Assert.Equal(tag.Name, result.Property <string>("Name"));
            Assert.Equal(TreeStoreItemType.Tag, result.Property <TreeStoreItemType>("ItemType"));
            //todo: properties //Assert.Equal("p", result.Property<string[]>("Properties").Single());
            Assert.IsType <TagNode.Item>(result.ImmediateBaseObject);
        }