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