Пример #1
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, "Foo", "/Bar"), "builder");
 }
Пример #2
0
 public void RequiresNonNullOrEmptyRootDirectory()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), s, "/Bar"), "rootDirectory");
 }
Пример #3
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, string.Empty), "builder");
 }
Пример #4
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), new PhysicalFileSystem(@"C:\"), s), "virtualRoot");
 }
Пример #5
0
 public void RequiresNonNullOrEmptyFileSystem()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(new TestAppBuilder(), (IFileSystem)null), "fileSystem");
 }
Пример #6
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, new PhysicalFileSystem(@"C:\")), "builder");
 }
Пример #7
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), "Foo", s), "virtualRoot");
 }