Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
 internal string GetFieldValue(string fieldName)
 {
     return(CheckFieldValuesCommand.GetFieldValue(adapter, fieldName));
 }
 internal string GetFieldValue(string fieldName)
 => CheckFieldValuesCommand.GetFieldValue(adapter, fieldName);