public void RegisterViewCatalogWithNull() { // Setup var mvc = new MvcEngine(); // Execute mvc.RegisterViewCatalog(a_catalog: null); }
public void RegisterViewCatalogWithAssemblyWithNullSuffix() { // Setup var mvc = new MvcEngine(); // Execute mvc.RegisterViewCatalog(a_directory: "Views", a_suffix: null, a_baseType: typeof(object)); }
public void RegisterViewCatalogWithAssembly() { // Setup var mvc = new MvcEngine(); // Execute var result = mvc.RegisterViewCatalog("Views", "", typeof(object)); // Assert Assert.AreSame(mvc, result); }
public void RegisterViewCatalog() { // Setup var mvc = new MvcEngine(); var viewCatalog = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "Views", "", typeof(object)); // Execute var result = mvc.RegisterViewCatalog(viewCatalog); // Assert Assert.AreSame(mvc, result); }
public void RegisterViewCatalog() { // Setup var mvc = new MvcEngine(); var viewCatalog = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "Views", "", typeof (object)); // Execute var result = mvc.RegisterViewCatalog(viewCatalog); // Assert Assert.AreSame(mvc, result); }