public void CheckAfterPropertiesSetPassesIfCorrectlyConfigured() { LogFactoryObject fac = new LogFactoryObject("Bing!"); fac.AfterPropertiesSet(); }
public void CheckAfterPropertiesSetBlowsUpIfNotCorrectlyConfigured() { LogFactoryObject fac = new LogFactoryObject(); Assert.Throws <ArgumentException>(() => fac.AfterPropertiesSet(), "The 'LogName' property has not been set."); }