Skip to content

Commit 3215e92

Browse files
committed
Added assert to check row values
1 parent 7486dcf commit 3215e92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Behavioral.Automation/Bindings/DropdownBinding.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ private void CheckDropdownValueCollectionEnabled([NotNull] string behavior,
116116
{
117117
foreach (var row in table.Rows)
118118
{
119+
Assert.ShouldBecome(() => row.Values.Any(), true, new AssertionBehavior(AssertionType.Immediate, false),
120+
"One of the rows in the provided table doesn't have values");
119121
runnerAction($"the \"{row.Values.First()}\" value {behavior} {enabled} in {wrapper.Caption}");
120122
}
121123
}

0 commit comments

Comments
 (0)