コード例 #1
0
        public void Token()
        {
            var token         = new AsyncToken <TestResult>();
            var successCalled = true;

            token
            .Token()
            .OnSuccess(_ => successCalled = true);

            token.Succeed(new TestResult());

            Assert.IsTrue(successCalled);
        }