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); }
public ContainmentQuerySegment(ContainmentQuerySegment toCopy) : this(toCopy.attribute, toCopy.abbreviateChild, toCopy.omitParent) { }