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
Inner exception details for both example and context exceptions are ignored.
We might need to consider using (or mimic) Exception.ToString instead of outputting stack trace and message separately.
Reproduce (NSpec 3.0.7):
publicclassillustrate_ContextInnerExceptionLost:nspec{publicvoidgiven_FailureWithInnerException(){act=()=>{thrownew Exception("Ctx:Outer",new Exception("Ctx:Inner"));};
it["should display both inner and outer"]=()=>{thrownew Exception("Example:Outer",new Exception("Example:Inner"));};}}
Actual: Ctx:Inner or Example:Inner don't appear in console output:
**** FAILURES ****
nspec. illustrate ContextInnerExceptionLost. given FailureWithInnerException. should display both inner and outer.
Context Failure: Ctx:Outer, Example Failure: Example:Outer
at nspec_debug.illustrate_ContextInnerExceptionLost.<>c.<given_FailureWithInnerException>b__0_0() in C:\_dev\other\nspec-debug\illustrate_ContextInnerExceptionLost.cs:line 13
The text was updated successfully, but these errors were encountered:
Inner exception details for both example and context exceptions are ignored.
We might need to consider using (or mimic) Exception.ToString instead of outputting stack trace and message separately.
Reproduce (NSpec 3.0.7):
Actual: Ctx:Inner or Example:Inner don't appear in console output:
The text was updated successfully, but these errors were encountered: