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?