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

Fix a Code Typo in XSharedDirectiveTests #16765

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

gehongyan
Copy link
Contributor

What does the pull request do?

Fixes a test code typo introduced in #16644.

What is the current behavior?

The typo causes the resources implicitSharedInstance1 and implicitSharedInstance2 to always be both AvaloniaProperty.UnsetValue, where Assert.Same passes.

image

What is the updated/expected behavior with this PR?

image

Let Assert.Same assert correct values.

How was the solution implemented (if it's not obvious)?

Fix the typo.

Checklist

Breaking changes

None.

Obsoletions / Deprecations

None.

Fixed issues

None.

The typo causes the resources `implicitSharedInstance1` and `implicitSharedInstance2` are both always `AvaloniaProperty.UnsetValue`, where `Assert.Same` passes.
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051421-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051509-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit de86c5a into AvaloniaUI:master Aug 27, 2024
8 of 10 checks passed
@gehongyan gehongyan deleted the fix-xsharextest branch August 28, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants