Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), new PhysicalFileSystem(@"C:\"), s), "virtualRoot");
 }
Esempio n. 3
0
 public void RequiresNonNullOrEmptyRootDirectory()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), s, "/Bar"), "rootDirectory");
 }
Esempio n. 4
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), "Foo", s), "virtualRoot");
 }