public void TestSelectorOperations()
{
ObjectiveCRuntime.Initialize();
String name;
IntPtr sel;
name = "alloc";
sel = ObjectiveCRuntime.Selector(name);
Assert.AreNotEqual(IntPtr.Zero, sel, "Selector cannot be null");
name = ObjectiveCRuntime.Selector(sel);
Assert.AreEqual("alloc", name, "Selector must be equal");
name = "isEqualToValue:";
sel = ObjectiveCRuntime.Selector(name);
Assert.AreNotEqual(IntPtr.Zero, sel, "Selector cannot be null");
name = ObjectiveCRuntime.Selector(sel);
Assert.AreEqual("isEqualToValue:", name, "Selector must be equal");
name = "stringWithCharacters:length:";
sel = ObjectiveCRuntime.Selector(name);
Assert.AreNotEqual(IntPtr.Zero, sel, "Selector cannot be null");
name = ObjectiveCRuntime.Selector(sel);
Assert.AreEqual("stringWithCharacters:length:", name, "Selector must be equal");
}