public void Should_not_write_if_debug_is_disable() { // Arrange var watcher = new ConsoleWatcher(); // Action watcher.DebugFormat("{Debug}", 1, 2); }
public void Should_write_if_debug_is_enable() { // Arrange var watcher = new ConsoleWatcher(); watcher.IsDebugEnable = true; // Action watcher.DebugFormat("{Debug}", 1, 2); }
// ReSharper disable InconsistentNaming public void Should_catch_all_potential_exceptions() // ReSharper restore InconsistentNaming { // Arrange var watcher = new ConsoleWatcher(); // Action watcher.WarnFormat("{0}{1}{2}", 1, 2); watcher.ErrorFormat("{0}{1}{2}", 1, 2); }