public void IsLogging() { if (Debugger.IsAttached) Debugger.IsLogging(); else Assert.False(Debugger.IsLogging()); }