private void CompareAnalysisResult() { string expectedPackageAnalysisPath = Path.Combine( expectedAnalysisResultRootDir, "NetFrameworkExample-analyze", "NetFrameworkExample-package-analysis.json"); string actualPackageAnalysisPath = Path.Combine( actualAnalysisResultRootDir, "NetFrameworkExample-analyze", "solution-analyze", "NetFrameworkExample", "NetFrameworkExample-package-analysis.json"); string[] propertiesToBeRemovedInPackageAnalysisResult = { }; Assert.IsTrue(JsonUtils.AreTwoJsonFilesEqual( expectedPackageAnalysisPath, actualPackageAnalysisPath, propertiesToBeRemovedInPackageAnalysisResult), "Package analysis did not match expected"); string expectedApiAnalysisPath = Path.Combine( expectedAnalysisResultRootDir, "NetFrameworkExample-analyze", "NetFrameworkExample-api-analysis.json"); string actualApiAnalysisPath = Path.Combine( actualAnalysisResultRootDir, "NetFrameworkExample-analyze", "solution-analyze", "NetFrameworkExample", "NetFrameworkExample-api-analysis.json"); string[] propertiesToBeRemovedInApiAnalysisResult = { "SourceFilePath", "Path", "TextChanges" }; bool comparisonResult = JsonUtils.AreTwoJsonFilesEqual( expectedApiAnalysisPath, actualApiAnalysisPath, propertiesToBeRemovedInApiAnalysisResult); Assert.IsTrue(comparisonResult, "API analysis did not match expected"); }