You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"System.Exception: Wrapping the exception to see the differences between outer and inner exceptions. ---> System.Exception: Throwing this exception to see all properties like stacktrace filled",
25
+
" at StackifyLib.UnitTests.Models.ExampleService.ThrowInnerException()",
26
+
" at StackifyLib.UnitTests.Models.ExampleService.CreateCaughtException()",
27
+
"--- End of inner exception stack trace ---",
28
+
" at StackifyLib.UnitTests.Models.ExampleService.ThrowOuterException(System.Exception)",
29
+
" at StackifyLib.UnitTests.Models.ExampleService.CreateCaughtException()",
30
+
" at StackifyLib.UnitTests.Models.ErrorItem_Tests+<TestExceptionStringWithInnerException>d__0.MoveNext()",
31
+
""
32
+
);
33
+
try
34
+
{
35
+
//ExampleService service = new ExampleService();
36
+
ExampleService.CreateCaughtException();
37
+
}
38
+
catch(Exceptionex)
39
+
{
40
+
//PrintExceptionInfo(ex);
41
+
varexceptionString=newErrorItem(ex).ToString();
42
+
Assert.Contains(expectedString,exceptionString);
43
+
}
44
+
}
45
+
}
46
+
47
+
classExampleService
48
+
{
49
+
publicstaticExceptionCreateCaughtException()
50
+
{
51
+
try
52
+
{
53
+
try
54
+
{
55
+
ThrowInnerException();
56
+
}
57
+
catch(Exceptionexception)
58
+
{
59
+
ThrowOuterException(exception);
60
+
}
61
+
}
62
+
catch(Exception)
63
+
{
64
+
throw;
65
+
}
66
+
// NOTE: never reached, but needed for the compiler.
0 commit comments