Index: pkg/analyzer/test/file_system/memory_file_system_test.dart |
diff --git a/pkg/analyzer/test/file_system/memory_file_system_test.dart b/pkg/analyzer/test/file_system/memory_file_system_test.dart |
index b40be43061cd5821d757bb072cd68b5ad459e1ae..ef4230184eb04244aa0d55ece806f3544276c07a 100644 |
--- a/pkg/analyzer/test/file_system/memory_file_system_test.dart |
+++ b/pkg/analyzer/test/file_system/memory_file_system_test.dart |
@@ -272,6 +272,26 @@ class FolderTest { |
expect(child.exists, isTrue); |
} |
+ void test_getChildAssumingFile_doesNotExist() { |
+ File child = folder.getChildAssumingFile('name'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isFalse); |
+ } |
+ |
+ void test_getChildAssumingFile_file() { |
+ provider.newFile('/foo/bar/name', 'content'); |
+ File child = folder.getChildAssumingFile('name'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isTrue); |
+ } |
+ |
+ void test_getChildAssumingFile_folder() { |
+ provider.newFolder('/foo/bar/name'); |
+ File child = folder.getChildAssumingFile('name'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isFalse); |
+ } |
+ |
void test_getChildAssumingFolder_doesNotExist() { |
Folder child = folder.getChildAssumingFolder('foldername'); |
expect(child, isNotNull); |