public void can_use_type_factory(){
             var resolver = new BrailSourceResolver();
            resolver.SetStatic("/test/x",@"<p>${i}</p>");
            resolver.SetStatic("/test/x2",@"bml:
    p : ""${i+i}""");
            var factory = new ViewTypeFactory(resolver, new MvcViewEngineOptions(),new BrailCompiler{AllInMemory=true});
            factory.CompileAll();
            var t1 = factory.CreateView<IView>("/test/x",new[] {typeof (BooViewEngine)}, new object[] {null});
            var t2 = factory.CreateView<IView>("/test/x", new[] { typeof(BooViewEngine) }, new object[] { null });

            var t3 = factory.CreateView<IView>("/test/x2", new[] { typeof(BooViewEngine) }, new object[] { null });
            var t4 = factory.CreateView<IView>("/test/x2", new[] { typeof(BooViewEngine) }, new object[] { null });

            Assert.AreEqual(t1.GetType().AssemblyQualifiedName,t2.GetType().AssemblyQualifiedName);
            Assert.AreEqual(t3.GetType(), t4.GetType());
            Assert.AreNotEqual(t1,t2);
            Assert.AreNotEqual(t3, t4);

        }
        public void setup() {
            var dir = "ViewSourceResolverTest".prepareTemporaryDirectory(true);
            this.loader = new BrailSourceResolver {FileSystem = new DefaultFilePathResolver(dir)};

        }