anchor.diff:    static BuiltSet<TestEnum> get values => _$vls;
     static TestEnum valueOf(String name) => _$vlOf(name);
   }
  -''',
  -          r'''// GENERATED CODE - DO NOT MODIFY BY HAND
  -
  +'''), endsWith(r'''
   part of test_enum;
   
   // **************************************************************************
  
positive.code:   static BuiltSet<TestEnum> get values => _$values;
    static TestEnum valueOf(String name) => _$valueOf(name);
  }
  ''',
            r'''// GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of test_enum;
  
  // **************************************************************************
  
negative.code: 
  // Error: Please make changes to use EnumClass.
  // TODO: Specify a type for field "anInt".
  '''));
      });
  
      test('fails with error on missing enum_class import', () async {
        expect(await generate(r'''
  library test_enum;
  
  part 'test_enum.g.dart';
  
  class TestEnum extends EnumClass {
    static const TestEnum yes = _$yes;
    static const TestEnum no = _$no;
    static const TestEnum maybe = _$maybe;
  
    const TestEnum._(String name) : super(name);
  
    static BuiltSet<TestEnum> get values => _$values;
    static TestEnum valueOf(String name) => _$valueOf(name);
  }
  '''), endsWith(r'''
  part of test_enum;
  
  // **************************************************************************
  