Skip to content

Commit fd8cdde

Browse files
committed
Fixes combo box test assertion
Updates test assertion to expect a null text value when a combo box is uninitialized. This corrects the expected behavior of the test.
1 parent 83d0ec8 commit fd8cdde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/MaterialDesignThemes.UITests/WPF/ComboBoxes/ComboBoxTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public async Task OnComboBox_WithClearButton_ClearsSelection()
7777
await Wait.For(async () =>
7878
{
7979
text = await comboBox.GetText();
80-
await Assert.That(text).IsNotNull();
80+
await Assert.That(text).IsNull();
8181
selectedIndex = await comboBox.GetSelectedIndex();
8282
await Assert.That(selectedIndex >= 0).IsFalse();
8383
});

0 commit comments

Comments
 (0)