Inheritance: System.Web.Hosting.VirtualFile
        public void ShouldLowercaseTemplateName()
        {
            var options = new TemplateCompilerOptions
            {
                ModuleName            = "",
                WorkingDir            = "/fixtures",
                LowercaseTemplateName = true
            };

            var template = new TestVirtualFile("/fixtures/TEMPLATE1.html", "test");
            var compiler = new TemplateCompiler(options);
            var result   = compiler.Compile(new VirtualFile[] { template });

            Assert.Equal(File.ReadAllText("../../../expected/compiled1.js"), result);
        }
 public TemplateCompilerTests()
 {
     _template1 = new TestVirtualFile("/fixtures/template1.html", "test");
     _template2 = new TestVirtualFile("/fixtures/template2.html", "test2");
 }
        public void ShouldLowercaseTemplateName()
        {
            var options = new TemplateCompilerOptions
            {
                ModuleName = "",
                WorkingDir = "/fixtures",
                LowercaseTemplateName = true
            };

            var template = new TestVirtualFile("/fixtures/TEMPLATE1.html", "test");
            var compiler = new TemplateCompiler(options);
            var result = compiler.Compile(new VirtualFile[] {template});
            Assert.Equal(File.ReadAllText("../../../expected/compiled1.js"), result);
        }
 public TemplateCompilerTests()
 {
     _template1 = new TestVirtualFile("/fixtures/template1.html", "test");
     _template2 = new TestVirtualFile("/fixtures/template2.html", "test2");
 }