Skip to content

Commit

Permalink
Remove redundant #endif assertions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Jan 10, 2025
1 parent 21a5b02 commit e4050b4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,11 @@ public void SampleShouldHaveHandler2Registered(string id, string framework, stri
{
AssertContains("#if IOS || MACCATALYST", programContents);
AssertContains("handlers.AddHandler<Microsoft.Maui.Controls.CollectionView, Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2>();", programContents);
AssertContains("#endif", programContents);
}
else
{
AssertDoesNotContain("#if IOS || MACCATALYST", programContents);
AssertDoesNotContain("handlers.AddHandler<Microsoft.Maui.Controls.CollectionView, Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2>();", programContents);
AssertDoesNotContain("#endif", programContents);
}
}
}

0 comments on commit e4050b4

Please sign in to comment.