public void GetParent() { var idt = new SymbolTable(); FullSymbol da = FullSymbol.Create(idt, @"c.a"); FullSymbol parent = da.GetParent(idt); XAssert.AreEqual(@"c", parent.ToString(idt)); da = FullSymbol.Create(idt, @"c.a.b"); parent = da.GetParent(idt); XAssert.AreEqual(@"c.a", parent.ToString(idt)); }