public void Execute(DoInTryCatch exceptionDelegate) { try { exceptionDelegate.Invoke(); Assert.Fail("Should throw NotSupportedException"); } catch (NotSupportedException) { } }