public void TestSelectorDefinitions()
{
ObjectiveCRuntime.Initialize();
IntPtr[] sels = new[]
{
this.sel_addObject,
this.sel_alloc,
this.sel_autorelease,
this.sel_boolValue,
this.sel_compare,
this.sel_count,
this.sel_doubleValue,
this.sel_floatValue,
this.sel_frame,
this.sel_init,
this.sel_intValue,
this.sel_length,
this.sel_mainScreen,
this.sel_numberWithBool,
this.sel_numberWithDouble,
this.sel_numberWithFloat,
this.sel_numberWithInt,
this.sel_numberWithShort,
this.sel_objectAtIndex,
this.sel_retain,
this.sel_release,
this.sel_shortValue,
this.sel_isEqualToValue,
this.sel_pointValue,
this.sel_rangeValue,
this.sel_rectValue,
this.sel_sizeValue,
this.sel_string,
this.sel_stringWithUTF8String,
this.sel_stringWithCharactersLength,
this.sel_stringWithString,
this.sel_valueWithPoint,
this.sel_valueWithRange,
this.sel_valueWithRect,
this.sel_valueWithSize,
};
foreach (IntPtr sel in sels)
{
String name = ObjectiveCRuntime.Selector(sel);
Assert.AreNotEqual("", name, "Select cannot be empty");
IntPtr selector = ObjectiveCRuntime.Selector(name);
Assert.AreNotEqual(IntPtr.Zero, selector, "Selector cannot be null");
}
}