@@ -25,6 +25,15 @@ class CreateClassLowercaseTest extends FixProcessorTest {
2525 @override
2626 FixKind get kind => DartFixKind .CREATE_CLASS_LOWERCASE ;
2727
28+ Future <void > test_instanceMethod_noFix () async {
29+ await resolveTestCode ('''
30+ class C {}
31+
32+ String? f(C c) => c.foo();
33+ ''' );
34+ await assertNoFix ();
35+ }
36+
2837 Future <void > test_lowercaseAssignment () async {
2938 await resolveTestCode ('''
3039void f() {
@@ -73,6 +82,20 @@ class _0newName {
7382''' );
7483 }
7584
85+ Future <void > test_prefix () async {
86+ newFile ('$testPackageLibPath /lib.dart' , '' );
87+ await resolveTestCode ('''
88+ import 'lib.dart' as lib;
89+
90+ String? f() => lib.foo();
91+ ''' );
92+ await assertHasFix ('''
93+
94+ class foo {
95+ }
96+ ''' , target: '$testPackageLibPath /lib.dart' );
97+ }
98+
7699 Future <void > test_startWithDollarSign () async {
77100 await resolveTestCode (r'''
78101void f() {
@@ -454,6 +477,15 @@ class Test {
454477 assertLinkedGroup (change.linkedEditGroups[0 ], ['Test ()' , 'Test {' ]);
455478 }
456479
480+ Future <void > test_instanceMethod_noFix () async {
481+ await resolveTestCode ('''
482+ class C {}
483+
484+ String? f(C c) => c.Foo();
485+ ''' );
486+ await assertNoFix ();
487+ }
488+
457489 Future <void > test_itemOfList () async {
458490 await resolveTestCode ('''
459491void f() {
@@ -500,6 +532,20 @@ class Test {
500532 assertLinkedGroup (change.linkedEditGroups[0 ], ['Test])' , 'Test {' ]);
501533 }
502534
535+ Future <void > test_prefix () async {
536+ newFile ('$testPackageLibPath /lib.dart' , '' );
537+ await resolveTestCode ('''
538+ import 'lib.dart' as lib;
539+
540+ String? f() => lib.Foo();
541+ ''' );
542+ await assertHasFix ('''
543+
544+ class Foo {
545+ }
546+ ''' , target: '$testPackageLibPath /lib.dart' );
547+ }
548+
503549 Future <void > test_simple () async {
504550 await resolveTestCode ('''
505551void f() {
0 commit comments