Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

Unit test to test Unified API functions - fails with ArgumentNullException in TryGetNSObject

$
0
0

I'm trying to write a unit test (using NUnit) for functions working with classes from Xamarin.Mac, such as NSData etc. But when I try to create any of such objects I get ArgumentNullException exception in TryGetNSObject. I assume some kind of initialisation does not happen in unit test project as opposed to the normal Unified application where those functions/object creation works perfectly.

What am I doing wrong? :)


Viewing all articles
Browse latest Browse all 1429

Latest Images

Trending Articles



Latest Images