Skip to content

#4602 WpfMessagePumpStrategy - #4603

Merged
OsirisTerje merged 2 commits into
nunit:masterfrom
soerendd:issue-4602
Jan 29, 2024
Merged

OsirisTerje merged 2 commits into
nunit:masterfrom
soerendd:issue-4602

Conversation

@soerendd

@soerendd soerendd commented Jan 18, 2024 •

Copy link
Copy Markdown

Replace Dispatcher.Run with PushFrame as Dispatcher.Run needs to exit all frames to return properly which causes issues if there is already an outer frame.

Should fix #4602

- Replace Dispatcher.Run with PushFrame as Dispatcher.Run needs to exit all frames to return properly which causes issues if there is already a outer frame running
@soerendd

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

@jnm2 jnm2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much! LGTM

@jnm2

jnm2 commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

@soerendd

Copy link
Copy Markdown
Author

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

Sure thing. I checked if there is a test for the message pump strategies. There are none.

I will check where to add this test

@soerendd

soerendd commented Jan 19, 2024 •

Copy link
Copy Markdown
Author

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

Sure thing. I checked if there is a test for the message pump strategies. There are none.

I will check where to add this test

@jnm2 I'm sorry but I haven't found a place where to put tests for that. The reason is that it would require a reference to System.Windows.Threading (wpf). Furthermore, I do not see an easy way to mock this properly.

@OsirisTerje

Copy link
Copy Markdown
Member

@soerendd The builds fails due to a mismatch on sdks. This is fixed in the master branch, so if you just merge in the master branch and push that up, the builds should work just fine.

@soerendd

Copy link
Copy Markdown
Author

@OsirisTerje Merged and pushed.

@OsirisTerje
OsirisTerje merged commit 68d9947 into nunit:master Jan 29, 2024
@soerendd
soerendd deleted the issue-4602 branch February 1, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WpfMessagePumpStrategy - change from Dispatcher.Run to Dispatcher.PushFrame

4 participants