Skip to content

Commit

Permalink
Suppress MSTEST0032
Browse files Browse the repository at this point in the history
A public property should be null-checked even if its type is non-nullable.
  • Loading branch information
y-iihoshi committed Jan 1, 2025
1 parent 583195b commit 69c3272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public void FontFamilyTestNonexistent()
{
var dictionary = new ResourceDictionary();
var adapter = new ResourceDictionaryAdapter(dictionary);
#pragma warning disable MSTEST0032 // Assertion condition is always true
Assert.IsNotNull(adapter.FontFamily);
#pragma warning restore MSTEST0032 // Assertion condition is always true
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void TitleTest()
public void IconTest()
{
var window = new AboutWindowViewModel();
#pragma warning disable MSTEST0032 // Assertion condition is always true
Assert.IsNotNull(window.Icon);
#pragma warning restore MSTEST0032 // Assertion condition is always true
}

[TestMethod]
Expand Down

0 comments on commit 69c3272

Please sign in to comment.