public void CheckAllExceptions() { var exceptionTypes = ExceptionTestHelper.CollectExceptionTypes(Assembly.GetAssembly(typeof(DuplicateKeyException))); foreach (var excType in exceptionTypes) { ExceptionAssert.ProperImplementation(excType); } }