public void CanFindTemplate() { var project = new LocationExpandingEmbeddedRazorProject(typeof(GlobalTestSettings), new IResourceExpander[] { }, null, "MailViewsEmbedded"); Assert.IsTrue(project.GetItemAsync("Test").Result.Exists); }
public void DoesntThrowOnMissingResource() { var project = new LocationExpandingEmbeddedRazorProject(typeof(GlobalTestSettings), new IResourceExpander[] { }, null, "MailViewsEmbedded"); Assert.IsFalse(project.GetItemAsync("Missing").Result.Exists); }
public void ThrowsOnMissingNamespace() { var unused = new LocationExpandingEmbeddedRazorProject(typeof(GlobalTestSettings), new IResourceExpander[] { }, null, ""); }
public void ThrowsOnMissingExpanders() { var unused = new LocationExpandingEmbeddedRazorProject(typeof(GlobalTestSettings), null, null, "MailViewsEmbedded"); }