First of all, thank you for sharing this test project. I really appreciate your work!
There are two main issues here:
1. I ran the unit test on both Windows and Mac .
It throws this compiler error on Mac: /usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/15.4.471/tools/msbuild/iOS/Xamarin.Shared.targets(3,3): Error: A bundle identifier is required. Either add an 'ApplicationId' property in the project file, or add a 'CFBundleIdentifier' entry in the project's Info.plist file. (TestProject1)
This is an issue I ran into before, as I mentioned in my previous comment.
2. Your unit test project works on Windows only when <UseMaui>true</UseMaui> is disabled. As you mentioned it in your comment that it breaks test run. It means we couldn't unit test any Maui API or Custom classes requires Maui API. It renders the unit test useless for a .Net Maui application.