// Verifies the results for the given web.config file path.
        private static void VerifyResults(string webConfigPath, IList <Diagnostic> allDiagnostics, string languageVersion)
        {
            var actualIssues   = allDiagnostics.Where(d => d.Location.GetLineSpan().Path.EndsWith(webConfigPath));
            var expectedIssues = IssueLocationCollector.GetExpectedIssueLocations(SourceText.From(File.ReadAllText(webConfigPath)).Lines).ToList();

            DiagnosticVerifier.CompareActualToExpected(languageVersion, actualIssues, expectedIssues, false);
        }