예제 #1
0
        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.");
            }
        }
예제 #2
0
 internal MockerException(MockerExceptionType exceptionType)
     : base(GetMessageFromExceptionType(exceptionType))
 {
 }