public void ShouldNotHaveExceptionWhereThereIsntOne() { LoggingTarget target = CreateTarget(); target.DoSomethingElse("hey there"); AssertContains("Exception: @@BEGIN EXCEPTION@@@@END EXCEPTION@@"); }
public void ShouldDefaultTo0ForEventId() { LoggingTarget target = CreateTarget(); target.DoSomethingElse("boo!"); AssertContains("Event ID: 0\r\n"); }
public void ShouldNotReportReturnValueWhenTargetMethodIsVoid() { LoggingTarget target = CreateTarget(); target.DoSomethingElse("dummy"); AssertContains(string.Format("Return value: {0}", Environment.NewLine)); }