Namespace: DeltaEngine.Tests.Core
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void WriteSkipMessages() { using (var logger = new ConsoleLogger()) { Assert.AreEqual("", console.ToString()); logger.Write(Logger.MessageType.Info, "FirstMessage"); logger.DoNotSkipMessagesIfTooManyAreWrittenEachSecond = false; Assert.IsFalse(logger.DoNotSkipMessagesIfTooManyAreWrittenEachSecond); Time.Total = -1; logger.Write(Logger.MessageType.Info, "Hello"); Assert.IsTrue(console.ToString().Contains("FirstMessage"), console.ToString()); } }
See Also