private static void Throws(Action act) { try { act(); Assert.Fail("Should have thrown"); } catch { } }