addFile method
Adds a file to PubPackageResolutionTest.resourceProvider.
The file is added at localPath relative to the package path of this
PackageBuilder, with content.
Implementation
void addFile(String localPath, String content) {
_test.newFile('$_packagePath/$localPath', content);
}