예제 #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);
                }
            }
        }
예제 #2
0
 internal string GetFieldValue(string fieldName)
 {
     return(CheckFieldValuesCommand.GetFieldValue(adapter, fieldName));
 }
 internal string GetFieldValue(string fieldName)
 => CheckFieldValuesCommand.GetFieldValue(adapter, fieldName);