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