Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Core.LoggerTests
1 unit tests call DeltaEngine.Core.Logger.Dispose
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Implements
IDisposable DisposeRemarks
Examples
[Test] public void IfNoLoggerIsAttachedWeGetAWarning() { const string Warning = "Ohoh"; const string Message = "No loggers have been created for this message: " + Warning; var defaultOut = Console.Out; var console = new StringWriter(); Console.SetOut(console); Logger.Warning(Warning); Assert.IsTrue(console.ToString().Contains(Message), console.ToString()); Console.SetOut(defaultOut); console.Dispose(); }
See Also