public void TestGenericThrowsTestVoidMethodReturnTaskAsync() { Mock.Setup(() => TestStaticClass.TestVoidMethodReturnTaskAsync(), () => { Assert.Throws <Exception>(() => TestStaticClass.TestVoidMethodReturnTaskAsync()); }); }