public void BadBoxOfBeansIsInterceptedAndLogged() { BeanCounter.Count(null); Assert.That(_log.ToString(), Does.Contain("Error in method")); }
public void BadBoxOfBeansThrowsException() => Assert.Throws <ArgumentNullException>(() => BeanCounter.Count(null));
public void BadBoxOfBeansIsInterceptedAndCounted() => Assert.That(BeanCounter.Count(null), Is.EqualTo(0));