Inheritance: ParserExtension
 public virtual void TestAddGetExtension()
 {
     ParserExtension extension = new ExtensionStub();
     assertNull(ext.GetExtension("foo"));
     ext.Add("foo", extension);
     Assert.AreSame(extension, ext.GetExtension("foo"));
     ext.Add("foo", null);
     assertNull(ext.GetExtension("foo"));
 }
        public void TestAddGetExtension()
        {
            ParserExtension extension = new ExtensionStub();

            assertNull(ext.GetExtension("foo"));
            ext.Add("foo", extension);
            Assert.AreSame(extension, ext.GetExtension("foo"));
            ext.Add("foo", null);
            assertNull(ext.GetExtension("foo"));
        }