Example #1
0
 /// <summary>
 /// Add a FreezableErrorLocation
 /// </summary>
 public static IError WithLocation(this IErrorBuilder errorBuilder, FreezableStepData data) =>
 errorBuilder.WithLocation(data.Location ?? ErrorLocation.EmptyLocation);
Example #2
0
 public ErrorCase(string name, IStep step, IErrorBuilder expectedErrorBuilder) : this(
         name,
         step,
         expectedErrorBuilder.WithLocation(step)
         ) { }
Example #3
0
 /// <summary>
 /// Add a FreezableErrorLocation
 /// </summary>
 public static IError WithLocation(this IErrorBuilder errorBuilder, IFreezableStep step) =>
 errorBuilder.WithLocation(new ErrorLocation(step.StepName, step.TextLocation));