public void Dispose() { CallContext.LogicalSetData("ShouldlyDisableSourceInErrors", null); }
/// <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()); }