public void InternTest() { String symName = "Symbol"; Package pack = new Package("Test"); var internedSymbol = pack.InternSymbol(symName); Assert.That(internedSymbol.Name, Is.EqualTo(symName)); var foundSymbol = pack.FindSymbol(symName); Assert.That(foundSymbol.Name, Is.EqualTo(symName)); Assert.That(internedSymbol, Is.EqualTo(foundSymbol)); }
public void FindSymbolNullTest() { Package pack = new Package("Test"); pack.FindSymbol(null); }
public void FindSymbolNotFoundTest() { Package pack = new Package("Test"); pack.FindSymbol("test"); }