public async Task RemeberWithTestAsync() { AbandonedTasks processingEvents = new(); using (RunningTasks.RememberWith(processingEvents)) { Assert.Equal(1, processingEvents.Count); } Assert.Equal(0, processingEvents.Count); using (RunningTasks.RememberWith(processingEvents)) { Assert.Equal(1, processingEvents.Count); } Assert.Equal(0, processingEvents.Count); await processingEvents.WhenAllAsync(); }