Example #1
0
        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));
        }
Example #2
0
 public void FindSymbolNullTest()
 {
     Package pack = new Package("Test");
       pack.FindSymbol(null);
 }
Example #3
0
 public void FindSymbolNotFoundTest()
 {
     Package pack = new Package("Test");
       pack.FindSymbol("test");
 }