예제 #1
0
 /// <summary>
 /// Add a FreezableErrorLocation
 /// </summary>
 public static IError WithLocation(this IErrorBuilder errorBuilder, FreezableStepData data) =>
 errorBuilder.WithLocation(data.Location ?? ErrorLocation.EmptyLocation);
예제 #2
0
파일: ErrorCase.cs 프로젝트: reductech/Core
 public ErrorCase(string name, IStep step, IErrorBuilder expectedErrorBuilder) : this(
         name,
         step,
         expectedErrorBuilder.WithLocation(step)
         ) { }
예제 #3
0
 /// <summary>
 /// Add a FreezableErrorLocation
 /// </summary>
 public static IError WithLocation(this IErrorBuilder errorBuilder, IFreezableStep step) =>
 errorBuilder.WithLocation(new ErrorLocation(step.StepName, step.TextLocation));