public void TestIdMessaging()
{
Id str = ObjectiveCRuntime.SendMessage<Id>(this.cls_NSString, "stringWithUTF8String:", "AbCdEfGhIjKlMnOpQrStUvWxYz");
Assert.AreNotEqual(IntPtr.Zero, str, "String creation cannot failed");
Id array = ObjectiveCRuntime.SendMessage<Id>(this.cls_NSArray, "arrayWithObject:", str);
Assert.AreNotEqual(IntPtr.Zero, array, "Array creation cannot failed");
uint count;
if (ObjectiveCRuntime.Is64Bits) {
count = (uint) ObjectiveCRuntime.SendMessage<ulong>(array, "count");
} else {
count = ObjectiveCRuntime.SendMessage<uint>(array, "count");
}
Assert.AreEqual(1, count, "Array must have 1 element");
}