Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyKuhne committed Oct 2, 2023
2 parents b18bf3c + af5bb8f commit 25cc638
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/thirtytwo_tests/Win32/UI/WindowsAndMessaging/IconTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ namespace Windows.Win32.UI.WindowsAndMessaging;

public class IconTests
{
[Theory]
[InlineData("regedit.exe", 7)]
[InlineData(@"C:\Windows\System32\OneDrive.ico", 1)]
public void GetFileIconCount(string file, int expected)
[Fact]
public void GetFileIconCount_Regedit()
{
HICON.GetFileIconCount("regedit.exe").Should().BeOneOf(5, 7);
}

[Fact]
public void GetFileIconCount_OneDrive()
{
HICON.GetFileIconCount(file).Should().Be(expected);
if (File.Exists(@"C:\Windows\System32\OneDrive.ico"))
{
HICON.GetFileIconCount(@"C:\Windows\System32\OneDrive.ico").Should().Be(1);
}
}

[Fact]
Expand Down

0 comments on commit 25cc638

Please sign in to comment.