Exemplo n.º 1
0
        public void HasChild_NoChildForSpecificResource_ReturnFalse()
        {
            var metadataRoot = new MetadataRoot("Default", 1);
            metadataRoot.AddChild ( "Child.Resource1" );

            Assert.IsFalse(metadataRoot.HasChild("Child.Resource2"));
        }
Exemplo n.º 2
0
        public void HasChild_SpecificResourceIsThere_ReturnTrue()
        {
            var metadataRoot = new MetadataRoot("Default", 1);
            metadataRoot.AddChild("Child.Resource1");
            metadataRoot.AddChild("Child.Resource2");

            Assert.IsTrue(metadataRoot.HasChild("Child.Resource2"));
        }
Exemplo n.º 3
0
 public void HasChild_NoChildAdded_ReturnFalse()
 {
     var metadataRoot = new MetadataRoot("Default", 1);
     Assert.IsFalse ( metadataRoot.HasChild ( "Child.Resource1" ) );
 }