/// <inheritdoc /> protected override IValueResult ToColumnValueResult(VerifiableTableColumn column, ColumnValue expected, ColumnValue actual) { var result = VerifyExpectation(column, expected, actual); return(new ValueResult( FormattingService.FormatValue(expected), FormattingService.FormatValue(actual), result ? ParameterVerificationStatus.Success : ParameterVerificationStatus.Failure, result ? null : $"{column.Name}: {result.Message}" )); }
private ITabularParameterRow ToMissingRow(TRow row, int index) { var values = Columns.Select(c => { var expected = c.GetValue(row); return(new ValueResult( FormattingService.FormatValue(expected), FormattingService.FormatValue(ColumnValue.None), ParameterVerificationStatus.NotProvided, $"{c.Name}: Value not provided" )); }); return(new TabularParameterRow(index, TableRowType.Missing, values)); }