public DebugMessage ( string trace ) : void | ||
trace | string | |
Результат | void |
public void capture_trace_and_debug_messages_to_the_Test_object() { var test = new TracedTest(); test.ConsoleMessage("console1"); test.DebugMessage("debug1"); test.ConsoleMessage("console2"); test.DebugMessage("debug2"); var context = new TestContext(new Container(), test, new ConsoleListener()); context.Execute(); context.TraceText.ShouldContain("console1"); context.TraceText.ShouldContain("console2"); context.TraceText.ShouldContain("debug1"); context.TraceText.ShouldContain("debug2"); }
public void capture_trace_and_debug_messages_to_the_Test_object() { var test = new TracedTest(); test.ConsoleMessage("console1"); test.DebugMessage("debug1"); test.ConsoleMessage("console2"); test.DebugMessage("debug2"); var context = new TestContext(new Container(), test, new ConsoleListener()); context.Execute(); context.TraceText.ShouldContain("console1"); context.TraceText.ShouldContain("console2"); context.TraceText.ShouldContain("debug1"); context.TraceText.ShouldContain("debug2"); }