Skip to content

[Testing] Migration of Compatibility.Core platform-specific unit tests into device tests - 7#28409

Merged
PureWeen merged 5 commits intoinflight/currentfrom
unknown repository
Mar 18, 2025
Merged

[Testing] Migration of Compatibility.Core platform-specific unit tests into device tests - 7#28409
PureWeen merged 5 commits intoinflight/currentfrom
unknown repository

Conversation

@nivetha-nagalingam
Copy link
Copy Markdown
Contributor

Description of Change
Migration of Compatibility.Core platform-specific unit tests to device tests. Here the migrated cases which ensuring that the ShellTest and ObservableItemsSource consistency of different elements matches their native counterparts. We are going to migrate tests in blocks in different PRs. This is the 7th group.

There are unit tests under:

  • src\Compatibility\Core\tests\Android
  • src\Compatibility\Core\tests\iOS
  • src\Compatibility\Core\tests\WinUI

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.

CollectionView Tests Enhancements:

Shell Tests Enhancements:

These changes ensure that the CollectionView and Shell components behave as expected under various conditions, improving the reliability of the application.

Issues Fixed
Fixes #27303

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 14, 2025
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Hey there @nivetha-nagalingam! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Mar 14, 2025
@ghost ghost added the area-testing Unit tests, device tests label Mar 14, 2025
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@nivetha-nagalingam nivetha-nagalingam marked this pull request as ready for review March 18, 2025 07:12
Copilot AI review requested due to automatic review settings March 18, 2025 07:12
@nivetha-nagalingam nivetha-nagalingam requested a review from a team as a code owner March 18, 2025 07:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates platform-specific unit tests from Compatibility.Core into device tests to ensure that the behavior of CollectionView and Shell components matches native expectations.

  • Migrates CollectionView unit tests for both Android and iOS with new test cases for observable collections and snap points.
  • Adds new Shell tests on Android to verify flyout header updates and default BottomNavigationView colors.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.Android.cs Migrated and enhanced CollectionView tests for Android.
src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs Migrated and enhanced CollectionView tests for iOS.
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Android.cs Migrated and enhanced Shell tests on Android.

@jsuarezruiz jsuarezruiz self-assigned this Mar 18, 2025
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current March 18, 2025 18:22
@PureWeen PureWeen merged commit 6699aeb into dotnet:inflight/current Mar 18, 2025
60 of 73 checks passed
PureWeen pushed a commit that referenced this pull request Mar 26, 2025
…s into device tests - 7 (#28409)

* Enabled the Shell and ObservableItemsSource for device test

* Updated CollectionViewTests.Android.cs

* Addressed the feedback

* Removed three test cases from the CollectionView test

* Corrected the misspelled words
PureWeen pushed a commit that referenced this pull request Mar 26, 2025
…s into device tests - 7 (#28409)

* Enabled the Shell and ObservableItemsSource for device test

* Updated CollectionViewTests.Android.cs

* Addressed the feedback

* Removed three test cases from the CollectionView test

* Corrected the misspelled words
github-actions bot pushed a commit that referenced this pull request Mar 27, 2025
…s into device tests - 7 (#28409)

* Enabled the Shell and ObservableItemsSource for device test

* Updated CollectionViewTests.Android.cs

* Addressed the feedback

* Removed three test cases from the CollectionView test

* Corrected the misspelled words
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Compatibility.Core platform-specific unit tests to device tests

5 participants