public string GetText(ExtractedType type) { if (type is ExtractedEnumType enumType) { _enumType = enumType; } else { throw new InvalidOperationException($"Expecting {nameof(ExtractedEnumType)}"); } string text = TransformText(); _enumType = null; return(text); }
public EnumTester(ExtractedEnumType enumInfo) { _enumInfo = enumInfo; }