public void TestAddRemoveConnectionListener() { ConnectionListenerCallback callback = (uid, connected, conn) => { }; int id = NtCore.AddConnectionListener(callback, true); Assert.That(id, Is.Not.EqualTo(0)); NtCore.RemoveEntryListener(id); }