Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Resolve issues with ImageSourceInitializesCorrectly tests #20224

Merged
merged 1 commit into from Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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