Beispiel #1
0
        public async Task WaitForReadiness_Call_ComposingElementsWaitForReadiness()
        {
            await _Composed.WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraint1.Received(1).WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraint2.Received(1).WaitForReadiness(CancellationToken.None);
        }
        public async Task Compose_Use_both_AwaitableConstraints()
        {
            await _Composed.WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraint1.Received(1).WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraint2.Received(1).WaitForReadiness(CancellationToken.None);
        }
Beispiel #3
0
        public async Task Clone_WaitForReadiness_Call_ComposingElementsWaitForReadiness()
        {
            var clone = _Composed.Clone();

            await clone.WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraintCloned1.Received(1).WaitForReadiness(CancellationToken.None);

            await _AwaitableConstraintCloned2.Received(1).WaitForReadiness(CancellationToken.None);
        }