there are 3 projects: shared, iOS and Android.
I want to run NUnit-Tests for functionalities in the shared project (Non-UI).
How do I have to proceed?
Can nobody help?
In the shared project you have all your viewModel and models also just added a project as NUnit test project
I created a test project with the following steps:
When i try to run the project a ton of errors occur. e.g. "The name 'InitializeComponent' does not exist in the current context". Names of Views (x:Name) cannot be found and so on...
I think the UI-Components cause the problems. Do i have to create a separate project with only the business logic inside (instead of Shared And Android)? I want to prevent code duplicates...
you need just add shared reference to the nUnit project.
shared project will contains only viewModel / models / and so on ...
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies