Beispiel #1
0
        public void FindChildMetadata_NoChildForSpecificResource_ReturnNull()
        {
            var metadataRoot = new MetadataRoot("Default", 1);
            metadataRoot.AddChild("Child.Resource1");

            Assert.IsNull(metadataRoot.FindChildMetadata("Child.Resource2"));
        }
Beispiel #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) );
        }
Beispiel #3
0
 public void FindChildMetadata_NoChildAdded_ReturnNull()
 {
     var metadataRoot = new MetadataRoot("Default", 1);
     Assert.IsNull(metadataRoot.FindChildMetadata("Child.Resource1"));
 }