public void RequiresNonNullOrEmptyVirtualRoot() { ContractAssert.NotNullOrEmpty(s => new RazorApplication( null, new Mock <IFileSystem>().Object, s, new Mock <IRouter>().Object, new Mock <ICompilationManager>().Object, new Mock <IPageActivator>().Object, new Mock <IPageExecutor>().Object, new Mock <ITraceFactory>().Object), "virtualRoot"); }
public void RequiresNonNullOrEmptyVirtualRoot() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), new PhysicalFileSystem(@"C:\"), s), "virtualRoot"); }
public void RequiresNonNullOrEmptyRootDirectory() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), s, "/Bar"), "rootDirectory"); }
public void RequiresNonNullOrEmptyVirtualRoot() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), "Foo", s), "virtualRoot"); }