public void RequiresNonNullFileSystem() { ContractAssert.NotNull(() => new DefaultRouter(null), "fileSystem"); }
public void RequiresNonNullTracer() { ContractAssert.NotNull(() => new DefaultPageActivator().ActivatePage(typeof(object), null), "tracer"); }
public void RequiresNonNullAction() { ContractAssert.NotNull(() => new DisposableAction(null), "act"); }
public void RequiresNonNullTracer() { ContractAssert.NotNull(() => CreateManager().Compile(new TestFile("a", "file", "text"), null), "tracer"); }
public void RequiresNonNullType() { ContractAssert.NotNull(() => new DefaultPageActivator().ActivatePage(null, NullTrace.Instance), "type"); }
public void RequiresNonNullContentIdentifier() { ContractAssert.NotNull(() => new DefaultCompilationManager(null), "identifier"); }
public void RequiresNonNullFile() { ContractAssert.NotNull(() => CreateManager().Compile(null, NullTrace.Instance), "file"); }
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"); }