public void OrphanChild() { var tag = new SampleInnerTag("MyTags.Parent.Child"); Assert.False(tag.ValidateParentFullKey(null)); }
public void SameBranch_SkippedChildren() { var tag = new SampleInnerTag("MyTags.Parent.Child.Grandchild"); Assert.False(tag.ValidateParentFullKey("MyTags.Parent")); }
public void DifferentBranches() { var tag = new SampleInnerTag("MyTags.Parent1.Child.Grandchild"); Assert.False(tag.ValidateParentFullKey("MyTags.Parent2.Child")); }
public void SameBranch_ImmediateChild() { var tag = new SampleInnerTag("MyTags.Parent.Child"); Assert.True(tag.ValidateParentFullKey("MyTags.Parent")); }