Ejemplo n.º 1
0
        public void WaitEndWitoutComplete()
        {
            bool completed = false;
            var  tmp       = new PushSubject <int>();

            tmp.Subscribe((_) => { }, () => completed = true);
            var returnedTask = tmp.ToTaskAsync();

            Assert.IsFalse(returnedTask.IsCompleted, "The task shouldn't be completed");
            Assert.IsFalse(returnedTask.Wait(1000), "The task should not complete");
            Assert.IsFalse(completed, "complete should not be triggered");
        }