Exemplo n.º 1
0
        public void RegisterViewCatalogWithNull()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterViewCatalog(a_catalog: null);
        }
Exemplo n.º 2
0
        public void RegisterViewCatalogWithAssemblyWithNullSuffix()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterViewCatalog(a_directory: "Views", a_suffix: null, a_baseType: typeof(object));
        }
Exemplo n.º 3
0
        public void RegisterViewCatalogWithAssembly()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            var result = mvc.RegisterViewCatalog("Views", "", typeof(object));

            // Assert
            Assert.AreSame(mvc, result);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        public void RegisterViewCatalogWithNull()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterViewCatalog(a_catalog: null);
        }
Exemplo n.º 6
0
        public void RegisterViewCatalogWithAssemblyWithNullSuffix()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterViewCatalog(a_directory: "Views", a_suffix: null, a_baseType: typeof(object));
        }
Exemplo n.º 7
0
        public void RegisterViewCatalogWithAssembly()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            var result = mvc.RegisterViewCatalog("Views", "", typeof(object));

            // Assert
            Assert.AreSame(mvc, result);
        }
Exemplo n.º 8
0
        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);
        }