コード例 #1
0
        public void ToCatalogNameWithNull()
        {
            // Setup
            var catalog = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "TestViews", "View");

            // Execute
            var catalogName = catalog.ToCatalogName(a_typeName: null);
        }
コード例 #2
0
        public void ToCatalogNameWithIncorrectSuffix()
        {
            // Setup
            var catalog = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "TestViews", "View");

            // Execute
            var catalogName = catalog.ToCatalogName("TestXiew");

            // Assert
            Assert.AreEqual("TestXiew", catalogName);
        }