private String GetCorrectName(Type formatType)
{
if (formatType == typeof(BuildMessageErrorFormatDefinition)) {
return "Output enhancer: Build error message";
}
if (formatType == typeof(BuildMessageWarningFormatDefinition)) {
return "Output enhancer: Build warning message";
}
if (formatType == typeof(BuildResultFailedFormatDefinition)) {
return "Output enhancer: Build failed";
}
if (formatType == typeof(BuildResultSucceededFormatDefinition)) {
return "Output enhancer: Build succeeded";
}
if (formatType == typeof(PublishResultSucceededFormatDefinition)) {
return "Output enhancer: Publish succeeded";
}
if (formatType == typeof(PublishResultFailedFormatDefinition)) {
return "Output enhancer: Publish failed";
}
if (formatType == typeof(DebugExceptionFormatDefinition)) {
return "Output enhancer: Debug exception message";
}
if (formatType == typeof(DebugTraceErrorFormatDefinition)) {
return "Output enhancer: Trace error message";
}
if (formatType == typeof(DebugTraceWarningFormatDefinition)) {
return "Output enhancer: Trace warning message";
}
if (formatType == typeof(NpmResultSucceededFormatDefinition)) {
return "Output enhancer: npm execution succeeded";
}
if (formatType == typeof(NpmResultFailedFormatDefinition)) {
return "Output enhancer: npm execution failed";
}
if (formatType == typeof(NpmMessageErrorFormatDefinition)) {
return "Output enhancer: npm error message";
}
if (formatType == typeof(NpmMessageWarningFormatDefinition)) {
return "Output enhancer: npm warning message";
}
if (formatType == typeof(BowerMessageErrorFormatDefinition)) {
return "Output enhancer: Bower error message";
}
throw new ArgumentOutOfRangeException(nameof(formatType), formatType, "Unknown format type");
}