Skip to content

Commit

Permalink
(GH-3376) Do not use Assert.Equal to check for null value
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnslndh authored and punker76 committed Oct 14, 2019
1 parent d614193 commit 9dcc0de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mahapps.Metro.Tests/Tests/NumericUpDownTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -243,13 +243,13 @@ public async Task ShouldConvertNumericTextInput()
Assert.Equal(42d, window.TheNUD.Value);

SetText(textBox, "42.2");
Assert.Equal(null, window.TheNUD.Value);
Assert.Null(window.TheNUD.Value);

SetText(textBox, ".");
Assert.Equal(null, window.TheNUD.Value);
Assert.Null(window.TheNUD.Value);

SetText(textBox, ".9");
Assert.Equal(null, window.TheNUD.Value);
Assert.Null(window.TheNUD.Value);
}

[Fact]
Expand Down

0 comments on commit 9dcc0de

Please sign in to comment.