public void TestEmbeddedAtRoot()
 {
     var p = new EmbeddedResourceVirtualPathProvider(new AppHost());
     p.IncludeAssemblies(typeof(EmbeddedResourceVirtualPathProviderTests).Assembly);
     p.PopulateFromEmbeddedResources();
     Assert.IsNotNull(p.GetFile("EmbedMe.cshtml"));
 }
 public void TestExcludeFile()
 {
     var p = new EmbeddedResourceVirtualPathProvider(new AppHost());
     p.IncludeAssemblies(typeof(EmbeddedResourceVirtualPathProviderTests).Assembly);
     p.FileExcluder = file => file.Name.Contains("EmbedMe");
     p.PopulateFromEmbeddedResources();
     Assert.IsNull(p.GetFile("EmbedMe.cshtml"));
 }