예제 #1
0
 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");
 }
예제 #8
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, "Foo", "/Bar"), "builder");
 }
예제 #9
0
 public void RequiresNonNullOrEmptyRootDirectory()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), s, "/Bar"), "rootDirectory");
 }
예제 #10
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, string.Empty), "builder");
 }
예제 #11
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), new PhysicalFileSystem(@"C:\"), s), "virtualRoot");
 }
예제 #12
0
 public void RequiresNonNullOrEmptyFileSystem()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(new TestAppBuilder(), (IFileSystem)null), "fileSystem");
 }
예제 #13
0
 public void RequiresNonNullBuilder()
 {
     ContractAssert.NotNull(() => RazorExtensions.UseRazor(null, new PhysicalFileSystem(@"C:\")), "builder");
 }
예제 #14
0
 public void RequiresNonNullOrEmptyVirtualRoot()
 {
     ContractAssert.NotNullOrEmpty(s => RazorExtensions.UseRazor(new TestAppBuilder(), "Foo", s), "virtualRoot");
 }