Пример #1
0
        public void FindChildMetadata_NoChildForSpecificResource_ReturnNull()
        {
            var metadataRoot = new MetadataRoot("Default", 1);
            metadataRoot.AddChild("Child.Resource1");

            Assert.IsNull(metadataRoot.FindChildMetadata("Child.Resource2"));
        }
Пример #2
0
        public void FindChildMetadata_SpecificResourceIsThere_ReturnMetadataNode()
        {
            var metadataRoot = new MetadataRoot("Default", 1);
            metadataRoot.AddChild("Child.Resource1");
            metadataRoot.AddChild("Child.Resource2");

            var result = metadataRoot.FindChildMetadata ( "Child.Resource2" );

            Assert.IsNotNull ( result );
            Assert.IsInstanceOfType ( result, typeof(MetadataNode) );
        }
Пример #3
0
 public void FindChildMetadata_NoChildAdded_ReturnNull()
 {
     var metadataRoot = new MetadataRoot("Default", 1);
     Assert.IsNull(metadataRoot.FindChildMetadata("Child.Resource1"));
 }