public void TestThrowsArgumentNullException() { Mock.Setup(() => TestStaticClass.TestVoidMethodWithoutParameters(), () => { Assert.Throws <ArgumentNullException>(() => TestStaticClass.TestVoidMethodWithoutParameters()); }).Throws <ArgumentNullException>(); }
public void TestThrowsTestVoidMethodWithoutParameters() { Mock.Setup(() => TestStaticClass.TestVoidMethodWithoutParameters(), () => { Assert.Throws <Exception>(() => TestStaticClass.TestVoidMethodWithoutParameters()); }).Throws(typeof(Exception)); }