public void HasRef() { Idle idle = this.loop.CreateIdle(); idle.AddReference(); Assert.True(idle.HasReference()); idle.RemoveReference(); Assert.False(idle.HasReference()); idle.CloseHandle(this.OnClose); }
public void Idle() { Idle idle = this.loop.CreateIdle().Start(this.OnCallback); idle.RemoveReference(); this.loop.RunDefault(); Assert.Equal(0, this.callbackCount); this.CloseHandle(idle); }