I have a PCL which contains the core logic for my Xamarin app, called
Foo.Core, and I have a PCL which contains the tests for
I am trying to create an Android Unit Test Project, and an iOS Unit Test Project, called
I was going to add a reference to
Foo.Core.Test.Portable in the platform-specific unit test projects, and change the calls to
UnitTestAppDelegate.FinishedLaunching(UIApplication,NSDictionary) respectively) to use the
When I tried to run the tests, the Application Output pad in Xamarin Studio shows
Tests run: 0, Passed: 0, Failed: 0, Skipped: 0, Inconclusive: 0 when I hit the 'Run Tests' button.
I've been unable to find an example which follows the idea I'm trying to get working. Even the
xamarin/web-tests repo on GitHub uses file linking in the platform-specific test projects to include the test fixtures, rather than adding a reference to the shared tests and passing the assembly.
My understanding is that
NUnitLite under the hood, and it looks like
NUnitLiteTestAssemblyBuilder happily accepts external assemblies which it loads test fixtures from.
Is there something I'm missing, or is the interface of
MonoTouch.NUnit.UI.TouchRunner just confusing?