public static void NoExceptionIsThrown(Action action) { if (action == null) { throw new ArgumentNullException("method"); } try { action(); } catch (Exception) { Assert.Fail(); } }