anchor.diff:    }
   
     void test_applyMultipleChanges() {
  -    getFile('/test.dart').writeAsStringSync('void main() {}');
  +    final path = convertPath('/test.dart');
  +    final file = getFile(path);
  +    file.writeAsStringSync('void main() {}');
       dartfixListener.addSourceChange(
  -        "test change",
  -        Location('/test.dart', 10, 0, 1, 10),
  -        SourceChange("test change", edits: [
  -          SourceFileEdit('/test.dart', 0, edits: [
  +        'test change',
  +        Location(path, 10, 0, 1, 10),
  +        SourceChange('test change', edits: [
  +          SourceFileEdit(path, 0, edits: [
               SourceEdit(10, 0, 'List args'),
               SourceEdit(13, 0, '\n  print(args);\n')
             ])
           ]));
       site.performApply();
  -    expect(getFile('/test.dart').readAsStringSync(), '''
  +    expect(file.readAsStringSync(), '''
   void main(List args) {
     print(args);
   }''');
  
positive.code: }
  
  @reflectiveTest
  class PreviewSiteTest {
    PreviewSite site;
    MemoryResourceProvider resourceProvider;
    DartFixListener dartfixListener;
    MigrationState state;
  
    File getFile(String path) =>
        resourceProvider.getFile(resourceProvider.convertPath(path));
  
    void setUp() {
      dartfixListener = DartFixListener(null);
  
negative.code:   }
  
    void test_applyChangesEmpty() {
      final file = getFile('/test.dart');
      file.writeAsStringSync('void main() {}');
      site.performApply();
      expect(file.readAsStringSync(), 'void main() {}');
      expect(state.hasBeenApplied, true);
    }
  
  