private void CheckThrowException() { if (ThrowException) { throw new FileNotFoundException("ThrowException has been activated on the MockDocumentType."); } } }