protected override void InternalExecute(ICommandAdapter adapter) { var comparisionHelper = new MultiLineComparisionHelper(); foreach (Parameter parameter in Parameters) { string fieldValue = CheckFieldValuesCommand.GetFieldValue(adapter, parameter.Name); string errorMessage = comparisionHelper.Compare("CheckFieldValues", parameter, fieldValue, "field value"); if (!string.IsNullOrEmpty(errorMessage)) { throw new TestException(errorMessage, parameter.PositionInScript); } } }
internal string GetFieldValue(string fieldName) { return(CheckFieldValuesCommand.GetFieldValue(adapter, fieldName)); }
internal string GetFieldValue(string fieldName) => CheckFieldValuesCommand.GetFieldValue(adapter, fieldName);