public void MiddleTier_InvalidWebMethod_TooMany() { bool hasFailed = false; try { WebServiceTests.InvalidWebMethod(); } catch (Exception ex) { ex.DoNothing(); hasFailed = true; } Assert.IsTrue(hasFailed); }