ConsoleLoggerTests LogError Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Core
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void LogError()
Examples

[Test]
public void LogError()
{
    using (var logger = new ConsoleLogger())
    {
        Assert.AreEqual("", console.ToString());
        logger.Write(Logger.MessageType.Error, new NotSupportedException().ToString());
        Assert.IsTrue(console.ToString().Contains("NotSupportedException"), console.ToString());
    }
}
See Also