Unit Test a Shared Project

Hi have a shared project which contains no platform-specific code. I created a standard Visual Studio Unit Test project (not an Android or iOS Unit Test project) with the intention of unit testing some of the classes in the shared project. I made my test project reference the shared project, but when it builds I get build errors. That is because a few of the source files reference some assemblies such as Xamarin.Forms for referencing primitives such as Size. I don't seem to have a way to reference these Xamarin assemblies in my standard test project.

Generally, what is the technique I should be using to test my shared project without having to make a platform specific test project?

Best Answer


Sign In or Register to comment.