Beispiel #1
0
        public void InvokesTypedOnCompletesWhenCompleted()
        {
            var    f = new Future <int>();
            object completeResult = null;

            f.RegisterOnComplete2((_) => { completeResult = _.Error ?? (object)_.Result; });
            f.Complete(5);
            Assert.AreEqual(5, completeResult);
        }