-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Testing] Migration of Compatibility.Core platform-specific unit tests into device tests - 1 #27695
Merged
jfversluis
merged 6 commits into
dotnet:main
from
anandhan-rajagopal:UnitToDeviceTest-1
Feb 22, 2025
Merged
[Testing] Migration of Compatibility.Core platform-specific unit tests into device tests - 1 #27695
jfversluis
merged 6 commits into
dotnet:main
from
anandhan-rajagopal:UnitToDeviceTest-1
Feb 22, 2025
+121
−2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.
Files not reviewed (2)
- src/Controls/tests/DeviceTests/Elements/Editor/EditorTests.cs: Evaluated as low risk
- src/Controls/tests/DeviceTests/Elements/Label/LabelTests.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/Controls/tests/DeviceTests/Elements/Image/ImageTests.cs:81
- [nitpick] The test description should be more specific. Consider renaming to 'The BackgroundColor of an Image should match the native background color'.
[Description("The BackgroundColor of a Image should match with native background color")]
/azp run |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
b3a8027
to
3568ac1
Compare
/azp run |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
3568ac1
to
ff042da
Compare
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
because this test fails unable to get the current color.
ff042da
to
ae456c3
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
jfversluis
approved these changes
Feb 22, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-testing
Unit tests, device tests
community ✨
Community Contribution
partner/syncfusion
Issues / PR's with Syncfusion collaboration
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Migration of Compatibility.Core platform-specific unit tests to device tests. Here the migrated cases which ensuring that the background color consistency of different elements matches their native counterparts. We are going to migrate tests in blocks in different PRs. This is the 1st group.
There are unit tests under:
That are not running right now. these cases from Xamarin.Forms where they could run as unit tests, but now with .NET MAUI this is not possible. So here I migrated the following cases in device tests.
Background Color Consistency Tests:
BoxViewBackgroundColorConsistent
to verify that theBackgroundColor
of aBoxView
matches the native background color. (src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.cs
)ButtonBackgroundColorConsistent
to verify that theBackgroundColor
of aButton
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Button/ButtonTests.cs
)EditorBackgroundColorConsistent
to verify that theBackgroundColor
of anEditor
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Editor/EditorTests.cs
)EntryBackgroundColorConsistent
to verify that theBackgroundColor
of anEntry
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Entry/EntryTests.cs
)ImageBackgroundColorConsistent
to verify that theBackgroundColor
of anImage
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Image/ImageTests.cs
)LabelBackgroundColorConsistent
to verify that theBackgroundColor
of aLabel
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Label/LabelTests.cs
)PickerBackgroundColorConsistent
to verify that theBackgroundColor
of aPicker
matches the native background color. (src/Controls/tests/DeviceTests/Elements/Picker/PickerTests.cs
)Issues Fixed
Fixes #27303