From fe51027a7898bcc57b4ea1c5d3d87e41726761f6 Mon Sep 17 00:00:00 2001 From: Andrey Brovko Date: Thu, 12 May 2022 09:22:13 +0300 Subject: [PATCH] TableBinding: assertion message. --- CHANGELOG.md | 5 +++++ src/Behavioral.Automation/Behavioral.Automation.csproj | 2 +- src/Behavioral.Automation/Bindings/TableBinding.cs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67d2de50..cf6b88f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,5 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +[1.9.3] - 2022-05-12 +### Changed +- Fix table rows count assertion message. + [1.9.2] - 2022-05-11 +### Added - Added binding to check that table contains rows in exact order \ No newline at end of file diff --git a/src/Behavioral.Automation/Behavioral.Automation.csproj b/src/Behavioral.Automation/Behavioral.Automation.csproj index 6d688d69..de377920 100644 --- a/src/Behavioral.Automation/Behavioral.Automation.csproj +++ b/src/Behavioral.Automation/Behavioral.Automation.csproj @@ -16,7 +16,7 @@ The whole automation code is divided into the following parts: - UI structure descriptive code - Supportive code Quantori Inc. - 1.9.2 + 1.9.3 https://github.com/quantori/Behavioral.Automation true true diff --git a/src/Behavioral.Automation/Bindings/TableBinding.cs b/src/Behavioral.Automation/Bindings/TableBinding.cs index ec846ca6..5d411645 100644 --- a/src/Behavioral.Automation/Bindings/TableBinding.cs +++ b/src/Behavioral.Automation/Bindings/TableBinding.cs @@ -26,7 +26,7 @@ public sealed class TableBinding [Then(@"(.*?) should have (\d+) items")] public void CheckRowsCount([NotNull] ITableWrapper element, int count) { - Assert.ShouldBecome(() => element.Rows.Count(), count, $"{element.Caption} has {element.Rows.Count()} rows"); + Assert.ShouldBecome(() => element.Rows.Count(), count, $"{element.Caption}: rows count mismatch."); } ///