Example #1
0
            public void Add(ContainmentAttribute att, bool abbrChild)
            {
                ContainmentQuerySegment segment = new ContainmentQuerySegment(att, abbrChild);

                if (segments.Count == 0)
                {
                    AstoriaTestLog.AreEqual(segment.attribute.ParentContainer, rootContainer,
                                            "First segment's parent container does not match this path's root container");
                }
                else
                {
                    AstoriaTestLog.AreEqual(segment.attribute.ParentContainer, segments.Last().attribute.ChildContainer,
                                            "New segment's parent does not match the current last container");
                }
                segments.Add(segment);
            }
Example #2
0
            public void Add(ContainmentAttribute att, bool abbrChild)
            {
                ContainmentQuerySegment segment = new ContainmentQuerySegment(att, abbrChild);

                if (segments.Count == 0)
                {
                    AstoriaTestLog.AreEqual(segment.attribute.ParentContainer, rootContainer,
                        "First segment's parent container does not match this path's root container");
                }
                else
                {
                    AstoriaTestLog.AreEqual(segment.attribute.ParentContainer, segments.Last().attribute.ChildContainer,
                        "New segment's parent does not match the current last container");
                }
                segments.Add(segment);
            }
Example #3
0
 public ContainmentQuerySegment(ContainmentQuerySegment toCopy)
     : this(toCopy.attribute, toCopy.abbreviateChild, toCopy.omitParent)
 {
 }
Example #4
0
 public ContainmentQuerySegment(ContainmentQuerySegment toCopy)
     : this(toCopy.attribute, toCopy.abbreviateChild, toCopy.omitParent)
 { }