assertNoPubspecDiagnostics method
Asserts that no diagnostics are reported when resolving content.
Note: Be sure to await any use of this API, to avoid stale analysis
results (See DisposedAnalysisContextResult).
Implementation
Future<void> assertNoPubspecDiagnostics(String content) async {
newFile(testPackagePubspecPath, content);
var errors = await _analyzePubspecFile(content);
assertDiagnosticsIn(errors, []);
}