コード例 #1
0
        public void CancellableDelay_UnitTest()
        {
            TimeSpan          time    = default(TimeSpan);
            CancellationToken token   = default(CancellationToken);
            Boolean           _retVal = default(Boolean);

            ExecuteMethod(
                () =>
            {
                time  = default(TimeSpan);          //No Constructor
                token = default(CancellationToken); //No Constructor
                CancellableDelay_PreCondition(ref time, ref token);
            },
                () => { _retVal = TaskHelpers.CancellableDelay(time, token); },
                () => { CancellableDelay_PostValidate(time, token, _retVal); });
        }