Skip to content

Commit b6e6d8a

Browse files
committed
Deserialize old scan results for now due to type discriminator
1 parent 6782507 commit b6e6d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.ComponentDetection.VerificationTests/ComponentDetectionIntegrationTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Microsoft.ComponentDetection.VerificationTests;
1111
using AwesomeAssertions.Execution;
1212
using Microsoft.ComponentDetection.Contracts.BcdeModels;
1313
using Microsoft.VisualStudio.TestTools.UnitTesting;
14+
using Newtonsoft.Json;
1415

1516
[TestClass]
1617
public class ComponentDetectionIntegrationTests
@@ -283,7 +284,7 @@ private void SetupGithub(string oldGithubArtifactsDir, string newGithubArtifacts
283284
{
284285
var oldGithubDirectory = new DirectoryInfo(oldGithubArtifactsDir);
285286
this.oldLogFileContents = this.GetFileTextWithPattern("GovCompDisc_Log*.log", oldGithubDirectory);
286-
this.oldScanResult = JsonSerializer.Deserialize<DefaultGraphScanResult>(this.GetFileTextWithPattern("ScanManifest*.json", oldGithubDirectory));
287+
this.oldScanResult = JsonConvert.DeserializeObject<DefaultGraphScanResult>(this.GetFileTextWithPattern("ScanManifest*.json", oldGithubDirectory));
287288

288289
var newGithubDirectory = new DirectoryInfo(newGithubArtifactsDir);
289290
this.newLogFileContents = this.GetFileTextWithPattern("GovCompDisc_Log*.log", newGithubDirectory);

0 commit comments

Comments
 (0)