Beispiel #1
0
        /// <inheritdoc />
        protected override IValueResult ToColumnValueResult(VerifiableTableColumn column, ColumnValue expected, ColumnValue actual)
        {
            var result = column.Expectation.Invoke(null).Verify(actual.Value, FormattingService);

            return(new ValueResult(
                       column.Expectation(null).Format(FormattingService),
                       FormattingService.FormatValue(actual),
                       result ? ParameterVerificationStatus.Success : ParameterVerificationStatus.Failure,
                       result ? null : $"{column.Name}: {result.Message}"
                       ));
        }