Exemple #1
0
        public void OrphanChild()
        {
            var tag = new SampleInnerTag("MyTags.Parent.Child");

            Assert.False(tag.ValidateParentFullKey(null));
        }
Exemple #2
0
        public void SameBranch_SkippedChildren()
        {
            var tag = new SampleInnerTag("MyTags.Parent.Child.Grandchild");

            Assert.False(tag.ValidateParentFullKey("MyTags.Parent"));
        }
Exemple #3
0
        public void DifferentBranches()
        {
            var tag = new SampleInnerTag("MyTags.Parent1.Child.Grandchild");

            Assert.False(tag.ValidateParentFullKey("MyTags.Parent2.Child"));
        }
Exemple #4
0
        public void SameBranch_ImmediateChild()
        {
            var tag = new SampleInnerTag("MyTags.Parent.Child");

            Assert.True(tag.ValidateParentFullKey("MyTags.Parent"));
        }