anchor.diff:    static BuiltSet<TestEnum> get values => _$values;
     static TestEnum valueOf(String name) => _$valueOf(name);
   }
  -''',
  -          correctOutput);
  +'''), endsWith(correctOutput));
       });
   
       test('matches generated names to rhs for field names', () async {
  -      await testGenerate(
  -          r'''
  +      expect(await generate(r'''
   library test_enum;
   
   import 'package:enum_class/enum_class.dart';
  
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: Generated identifier "_$no" is used multiple times, change to something else.
  '''));
      });
  
      test('fails with error on missing constructor', () async {
        expect(await generate(r'''
  library test_enum;
  
  import 'package:enum_class/enum_class.dart';
  
  part 'test_enum.g.dart';
  
  class TestEnum extends EnumClass {
    static const TestEnum yes = _$yes;
    static const TestEnum no = _$no;
    static const TestEnum maybe = _$maybe;
  
    static BuiltSet<TestEnum> get values => _$values;
    static TestEnum valueOf(String name) => _$valueOf(name);
  }
  '''), endsWith(r'''
  part of test_enum;
  
  // **************************************************************************
  