public async Task RunWithHourglassAsyncTest() { using (var ctrl = new ToolStripButton()) { var done = false; await ctrl.RunWithHourglassAsync(async() => await Task.Run(() => done = true)); Assert.IsTrue(done); } }
public async Task RunWithHourglassAsyncTest() { using (var ctrl = new ToolStripButton()) { var done = false; await ctrl.RunWithHourglassAsync(async() => await Task.Run(() => done = true)); Assert.IsTrue(done); } }