Пример #1
0
        public void CreateFactorySuccessful()
        {
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();
            IListableObjectFactory      factory    = (IListableObjectFactory)objHandler.Create(null, null, _xmlElement);

            Assert.AreEqual(1, factory.ObjectDefinitionCount);
        }
Пример #2
0
        public void CreateFactoryUnSuccessful()
        {
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();

            Assert.Throws <ArgumentNullException>(() => objHandler.Create(null, null, null));
        }