Skip to content

Commit

Permalink
Chore - add testing for modifying allowedValues with spacees to under…
Browse files Browse the repository at this point in the history
…scores
  • Loading branch information
Nick Ardecky committed Dec 6, 2023
1 parent 4f5bc6f commit e27cccc
Show file tree
Hide file tree
Showing 4 changed files with 4,077 additions and 777 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private CodeTypeDeclaration GenerateEnumStruct(MetricType type)
allowedValue.Replace(" ", "_").ToPascalCase().Replace(".", "").Replace("-", ""))
{
InitExpression = new CodeObjectCreateExpression(type.GetGeneratedTypeName(),
new CodeExpression[] {new CodePrimitiveExpression(allowedValue)}),
new CodeExpression[] {new CodePrimitiveExpression(allowedValue.Replace(" ", "_"))}),
Attributes = MemberAttributes.Static | MemberAttributes.Public
};
field.Comments.Add(new CodeCommentStatement(allowedValue, true));
Expand Down
Loading

0 comments on commit e27cccc

Please sign in to comment.