diff --git a/test/Microsoft.ComponentDetection.VerificationTests/ComponentDetectionIntegrationTests.cs b/test/Microsoft.ComponentDetection.VerificationTests/ComponentDetectionIntegrationTests.cs index e60fa7060..a3e3b1fe3 100644 --- a/test/Microsoft.ComponentDetection.VerificationTests/ComponentDetectionIntegrationTests.cs +++ b/test/Microsoft.ComponentDetection.VerificationTests/ComponentDetectionIntegrationTests.cs @@ -5,12 +5,12 @@ namespace Microsoft.ComponentDetection.VerificationTests; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text.Json; using System.Text.RegularExpressions; using AwesomeAssertions; using AwesomeAssertions.Execution; using Microsoft.ComponentDetection.Contracts.BcdeModels; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Newtonsoft.Json; [TestClass] public class ComponentDetectionIntegrationTests @@ -283,11 +283,11 @@ private void SetupGithub(string oldGithubArtifactsDir, string newGithubArtifacts { var oldGithubDirectory = new DirectoryInfo(oldGithubArtifactsDir); this.oldLogFileContents = this.GetFileTextWithPattern("GovCompDisc_Log*.log", oldGithubDirectory); - this.oldScanResult = JsonConvert.DeserializeObject(this.GetFileTextWithPattern("ScanManifest*.json", oldGithubDirectory)); + this.oldScanResult = JsonSerializer.Deserialize(this.GetFileTextWithPattern("ScanManifest*.json", oldGithubDirectory)); var newGithubDirectory = new DirectoryInfo(newGithubArtifactsDir); this.newLogFileContents = this.GetFileTextWithPattern("GovCompDisc_Log*.log", newGithubDirectory); - this.newScanResult = System.Text.Json.JsonSerializer.Deserialize(this.GetFileTextWithPattern("ScanManifest*.json", newGithubDirectory)); + this.newScanResult = JsonSerializer.Deserialize(this.GetFileTextWithPattern("ScanManifest*.json", newGithubDirectory)); } private string GetFileTextWithPattern(string pattern, DirectoryInfo directory)