public void Cancel_Upfront() { var cts = new CancellationTokenSource(); cts.Cancel(); var cs = new SingleSubject <int>(); var task = cs .ToTask(cts); Assert.False(cs.HasObserver()); Assert.True(task.IsCanceled); }
public void Cancel_Upfront() { var cts = new CancellationTokenSource(); cts.Cancel(); var cs = new SingleSubject <int>(); var task = cs .ToTask(cts); Assert.False(cs.HasObserver()); Assert.True(task.IsCanceled); }