You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XUnit and to a lesser extent nUnit seem to be the two main packages for Unit Testing of .NET projects yet ClientApp.UnitTests uses neither. Are you (MS) basically telling us if we want to Unit Test something like a ViewModel that is in a MAUI project we should bve using MSTest?
We are currently porting a XF project to MAUI and in fairness to .NET9 MAUI we are pretty close but right at the start of the migration project I commented out all of our Unit Tests as for a number of reasons I could not get them to work.
Yesterday I tried to start a .NET9 unit test project from scratch and after much mucking about with TargetFrameworks I hit this issue that has been around since 2022, Unit test projects don't work . The UintTest project is complaining that it does not habve a info.plist!
What is the right direction to test a MAUI app:
Move away from NUNit/XUnit and use MSTest.TestFramework?
Move all ViewModels and Converters out of MAUI project into a plain .NET9.0 assembly?
How successful have others been porting UnitTests from Xamarin Forms?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
XUnit and to a lesser extent nUnit seem to be the two main packages for Unit Testing of .NET projects yet ClientApp.UnitTests uses neither. Are you (MS) basically telling us if we want to Unit Test something like a ViewModel that is in a MAUI project we should bve using MSTest?
We are currently porting a XF project to MAUI and in fairness to .NET9 MAUI we are pretty close but right at the start of the migration project I commented out all of our Unit Tests as for a number of reasons I could not get them to work.
Yesterday I tried to start a .NET9 unit test project from scratch and after much mucking about with TargetFrameworks I hit this issue that has been around since 2022, Unit test projects don't work . The UintTest project is complaining that it does not habve a info.plist!
What is the right direction to test a MAUI app:
How successful have others been porting UnitTests from Xamarin Forms?
Beta Was this translation helpful? Give feedback.
All reactions