public void RequiresNonNullBuilder() { ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, "Foo", "/Bar"), "builder"); }
public void RequiresNonNullOrEmptyRootDirectory() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), s, "/Bar"), "rootDirectory"); }
public void RequiresNonNullBuilder() { ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, string.Empty), "builder"); }
public void RequiresNonNullOrEmptyVirtualRoot() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), new PhysicalFileSystem(@"C:\"), s), "virtualRoot"); }
public void RequiresNonNullOrEmptyFileSystem() { ContractAssert.NotNull(() => RazorExtensions.UseRazor(new TestAppBuilder(), (IFileSystem)null), "fileSystem"); }
public void RequiresNonNullBuilder() { ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, new PhysicalFileSystem(@"C:\")), "builder"); }
public void RequiresNonNullOrEmptyVirtualRoot() { ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), "Foo", s), "virtualRoot"); }