コード例 #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 CreateFactorySuccessful()
        {
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();
            IListableObjectFactory      factory    = (IListableObjectFactory)objHandler.Create(null, null, _xmlElement);

            Assert.AreEqual(1, factory.ObjectDefinitionCount);
        }
コード例 #3
0
		public void CreateFactoryUnSuccessful()
		{
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();
			objHandler.Create( null, null, null );
		}
コード例 #4
0
		public void CreateFactoryUnSuccessful()
		{
		    ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();
		    Assert.Throws<ArgumentNullException>(() => objHandler.Create(null, null, null));
		}
コード例 #5
0
        public void CreateFactoryUnSuccessful()
        {
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();

            Assert.Throws <ArgumentNullException>(() => objHandler.Create(null, null, null));
        }
コード例 #6
0
        public void CreateFactoryUnSuccessful()
        {
            ObjectFactorySectionHandler objHandler = new ObjectFactorySectionHandler();

            objHandler.Create(null, null, null);
        }