Skip to content

Commit

Permalink
Fix ImageSourceInitializesCorrectly tests on Windows (#20224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Feb 1, 2024
1 parent b5fc3e5 commit 359bde8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Core/tests/DeviceTests/Handlers/Button/ButtonHandlerTests.cs
Expand Up @@ -65,11 +65,7 @@ public async Task ClickEventFires()
Assert.True(clicked);
}

[Theory(
#if WINDOWS
Skip = "Fails on Windows"
#endif
)]
[Theory(DisplayName = "ImageSource Initializes Correctly")]
[InlineData("red.png", "#FF0000")]
[InlineData("green.png", "#00FF00")]
[InlineData("black.png", "#000000")]
Expand All @@ -81,10 +77,8 @@ public async Task ImageSourceInitializesCorrectly(string filename, string colorH
ImageSource = new FileImageSourceStub(filename),
};

await InvokeOnMainThreadAsync(async () =>
await AttachAndRun(image, async (handler) =>
{
var handler = CreateHandler(image);
await AssertEventually(() => ImageSourceLoaded(handler));
var expectedColor = Color.FromArgb(colorHex);
Expand Down

0 comments on commit 359bde8

Please sign in to comment.