public void ExceptionLoging_WithArgument_LogsArguments() { ExceptionThrowingClass ei = new ExceptionThrowingClass(); try { ei.ThrowException(1); } catch ( Exception ) { } string output = OutputString.ToString(); Debug.WriteLine( output ); StringAssert.Contains("An exception occurred in PostSharp.Toolkit.Tests.ExceptionThrowingClass.ThrowException(int i = 1):\nSystem.Exception", output); }
public void ExceptionLoging_WithArgument_LogsArguments() { ExceptionThrowingClass ei = new ExceptionThrowingClass(); try { ei.ThrowException(1); } catch (Exception) { } string output = OutputString.ToString(); Debug.WriteLine(output); StringAssert.Contains("An exception occurred in PostSharp.Toolkit.Tests.ExceptionThrowingClass.ThrowException(int i = 1):\nSystem.Exception", output); }