예제 #1
0
        public void TestMultiplyAsyncException(int a, int b)
        {
            AsyncUtil obj = new AsyncUtil();

            Assert.ThrowsAsync <InvalidOperationException>(async() => await obj.MultiplyAsync(a, b));
        }
예제 #2
0
        public async Task <int> TestMultiplyAsync(int a, int b)
        {
            AsyncUtil obj = new AsyncUtil();

            return(await obj.MultiplyAsync(a, b));
        }