示例#1
0
        public async Task <long> CheckAwaitBehaviourWithAwaitAtTheEnd()
        {
            var watch = Stopwatch.StartNew();
            var task1 = _asyncService.CallMockService();
            var task2 = _asyncService.CallMockService();
            var task3 = _asyncService.CallMockService();

            MockMethod(await task1, await task2, await task3);
            watch.Stop();
            return(watch.ElapsedMilliseconds);
        }