Skip to content

Commit

Permalink
Update test to use NUnit 4 asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylangisc committed Nov 28, 2024
1 parent 1b29d6a commit 52df1d1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public void PersistsEmptyValue()
new("test.empty.default", "DONT")
]);

Assert.AreEqual("DONT", preferences.getDefault("test.empty.default"));
Assert.That("DONT", Is.EqualTo(preferences.getDefault("test.empty.default")));
preferences.setProperty("test.empty.default", "");
Assert.AreEqual("DONT", preferences.getDefault("test.empty.default"));
Assert.AreEqual("", preferences.getProperty("test.empty.default"));
Assert.That("DONT", Is.EqualTo(preferences.getDefault("test.empty.default")));
Assert.That("", Is.EqualTo(preferences.getProperty("test.empty.default")));
}

[TestCase]
Expand All @@ -44,7 +44,7 @@ public void OverrideDefaultsDefault()
new("test.core.override", "")
]);

Assert.IsEmpty(preferences.getProperty("test.core.override"));
Assert.That(preferences.getProperty("test.core.override"), Is.Empty);
}

public class TestPreferences : ApplicationPreferences<TestPreferences>
Expand Down

0 comments on commit 52df1d1

Please sign in to comment.