Inheritance: ParserExtension
Ejemplo n.º 1
0
 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"));
 }
Ejemplo n.º 2
0
        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"));
        }