Skip to content

Commit eeb3bd3

Browse files
committed
Updates test framework for DecimalUpDown
Converts the DecimalUpDown test to use the `Arguments` attribute and updates assertions to improve reliability and clarity.
1 parent 2c2f754 commit eeb3bd3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/MaterialDesignThemes.UITests/WPF/UpDownControls/DecimalUpDownTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ namespace MaterialDesignThemes.UITests.WPF.UpDownControls;
77

88
public class DecimalUpDownTests: TestBase
99
{
10-
[Theory]
11-
[InlineData("en-US")]
12-
[InlineData("da-DK")]
13-
[InlineData("fa-IR")]
14-
[InlineData("ja-JP")]
15-
[InlineData("zh-CN")]
10+
[Test]
11+
[Arguments("en-US")]
12+
[Arguments("da-DK")]
13+
[Arguments("fa-IR")]
14+
[Arguments("ja-JP")]
15+
[Arguments("zh-CN")]
1616
public async Task NumericButtons_IncreaseAndDecreaseValue(string culture)
1717
{
1818
await using var recorder = new TestRecorder(App);
@@ -32,7 +32,7 @@ public async Task NumericButtons_IncreaseAndDecreaseValue(string culture)
3232
await plusButton.LeftClick();
3333
await Wait.For(async () =>
3434
{
35-
Assert.Equal(Convert.ToString(1.1, CultureInfo.GetCultureInfo(culture)), await textBox.GetText());
35+
await Assert.That(await textBox.GetText()).IsEqualTo(Convert.ToString(1.1, CultureInfo.GetCultureInfo(culture)));
3636
await Assert.That(await textBox.GetText()).IsEqualTo("2");
3737
await Assert.That(await numericUpDown.GetValue()).IsEqualTo(2);
3838
});

0 commit comments

Comments
 (0)