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