public void NotSpecifyingObjectFactoryUsesDefault()
        {
            var deserializer = new Deserializer();
            deserializer.RegisterTagMapping("!foo", typeof(FooBase));
            var result = deserializer.Deserialize(new StringReader("!foo {}"));

            Assert.IsType<FooBase>(result);
        }
        public void ObjectFactoryIsInvoked()
        {
            var deserializer = new Deserializer(new LambdaObjectFactory(t => new FooDerived()));
            deserializer.RegisterTagMapping("!foo", typeof(FooBase));

            var result = deserializer.Deserialize(new StringReader("!foo {}"));

            Assert.IsType<FooDerived>(result);
        }