Пример #1
0
        public async void RunAsyncTEST(string data)
        {
            var CmpValue = await TaskRunTemplate.RunAsync(
                () => {
                return(data);
            }
                );

            Assert.Equal(data, CmpValue);
        }
Пример #2
0
        public void RunAsyncTEST(string data)
        {
            var CmpValue = TaskRunTemplate.RunAsync(
                () => {
                return(data);
            }
                ).Result;

            Assert.AreEqual(data, CmpValue);
        }