Пример #1
0
 public void Dispose()
 {
     CallContext.LogicalSetData("ShouldlyDisableSourceInErrors", null);
 }
Пример #2
0
 /// <summary>
 /// When set to true shouldly will not try and create better error messages using your source code
 /// </summary>
 public static IDisposable DisableSourceInErrors()
 {
     CallContext.LogicalSetData("ShouldlyDisableSourceInErrors", true);
     return(new EnableSourceInErrorsDisposable());
 }