private static string GetMessageFromExceptionType(MockerExceptionType exceptionType) { switch (exceptionType) { case MockerExceptionType.NoValidConstructors: return("Mocker could not find constructors that consist entirely of interfaces."); default: return("Mocker encountered an error."); } }
internal MockerException(MockerExceptionType exceptionType) : base(GetMessageFromExceptionType(exceptionType)) { }