jamesmontemagno / DeviceInfoPlugin

Device Information Plugin for Xamarin and Windows
Other
145 stars 44 forks source link

How to use with net standard unit tests? #53

Closed joshardt closed 6 years ago

joshardt commented 6 years ago

Got version 3.1.0 of the NuGet package and tried to use it with my net standard unit tests that are running on my MacBook. Whatever you call, you will get the following Exception:

NotImplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.

Is there a way to use this package with my net standard unit tests?

jamesmontemagno commented 6 years ago

See: https://montemagno.com/unit-testing-plugins-for-xamarin/

joshardt commented 6 years ago

Just using the interface. How obvious 😁Shouldn't write comments when I am in a hurry. But thanks for the article!