private static SectionEntry GenerateTestTree() { SectionEntry root = new EntryGrouper(); SectionEntry n1 = new SectionEntry("n1", "First Node: [!/n1-1:[VALUE]!]", null); root.Entries.Add(n1); n1.Parent = root; n1.Root = root; n1.Entries.Add(new ValueEntry("n1-1", "First Value", "string", "A Value That Is A Name", "!/n2", n1, root)); n1.Entries.Add(new ValueEntry("n1-2", "Second Value", "misc", "something", "/..", n1, root)); root.Entries.Add(new ValueEntry("n2", "[!/../n1:[VNAME]!]", "number", "a normal value", null, root, root)); return root; }
public bool Equals(EntryGrouper other) { if (other == null) { return(false); } if (!EqualityComparer <DateTime> .Default.Equals(this.StartOfWeek, other.StartOfWeek)) { return(false); } if (!EqualityComparer <string> .Default.Equals(this.Section, other.Section)) { return(false); } if (!EqualityComparer <string> .Default.Equals(this.Page, other.Page)) { return(false); } if (!EqualityComparer <string> .Default.Equals(this.Module, other.Module)) { return(false); } return(true); }