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

            Assert.IsFalse(metadataRoot.HasChild("Child.Resource2"));
        }
Esempio 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"));
        }
Esempio n. 3
0
 public void HasChild_NoChildAdded_ReturnFalse()
 {
     var metadataRoot = new MetadataRoot("Default", 1);
     Assert.IsFalse ( metadataRoot.HasChild ( "Child.Resource1" ) );
 }