Beispiel #1
0
        public void CategoryNode_provides_Item()
        {
            // ARRANGE

            var c = DefaultCategory();

            // ACT

            var result = new CategoryNode(c).GetItem(this.ProviderContextMock.Object);

            // ASSERT

            Assert.Equal(c.Id, result.Property <Guid>("Id"));
            Assert.Equal(c.Name, result.Property <string>("Name"));
            Assert.Equal(TreeStoreItemType.Category, result.Property <TreeStoreItemType>("ItemType"));
            Assert.IsType <CategoryNode.Item>(result.ImmediateBaseObject);
        }