コード例 #1
0
        public void CheckAfterPropertiesSetPassesIfCorrectlyConfigured()
        {
            LogFactoryObject fac = new LogFactoryObject("Bing!");

            fac.AfterPropertiesSet();
        }
コード例 #2
0
        public void CheckAfterPropertiesSetBlowsUpIfNotCorrectlyConfigured()
        {
            LogFactoryObject fac = new LogFactoryObject();

            Assert.Throws <ArgumentException>(() => fac.AfterPropertiesSet(), "The 'LogName' property has not been set.");
        }