Skip to content

Commit

Permalink
Merge pull request dependabot#10997 from dependabot/dependabot/nuget/…
Browse files Browse the repository at this point in the history
…nuget/helpers/lib/NuGetUpdater/xunit-2.9.2

Bump xunit from 2.4.2 to 2.9.2 in /nuget/helpers/lib/NuGetUpdater
  • Loading branch information
randhircs authored Nov 25, 2024
2 parents 4cc0e84 + fd61080 commit 8030b6d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nuget/helpers/lib/NuGetUpdater/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />

<PackageVersion Include="xunit" Version="2.4.2" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ await RunAsync(
}),
updaterWorker: new TestUpdaterWorker(async input =>
{
Assert.Contains(input.Item3, ["Some.Package", "Some.Package2"]);
Assert.Contains(input.Item3, new List<string> { "Some.Package", "Some.Package2" });
Assert.Equal("1.0.0", input.Item4);
Assert.Equal("1.0.1", input.Item5);
var projectPath = input.Item1 + input.Item2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public async Task DeserializeExperimentsManager_UnsupportedJobFileShape_InfoIsRe
// assert
Assert.False(experimentsManager.UseLegacyDependencySolver);
Assert.False(experimentsManager.UseDirectDiscovery);
Assert.Single(capturingTestLogger.Messages.Where(m => m.Contains("Error deserializing job file")));
Assert.Single(capturingTestLogger.Messages, m => m.Contains("Error deserializing job file"));
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ public async Task MissingTargetsAreReported()
var resultContents = await File.ReadAllTextAsync(resultOutputPath);
var result = JsonSerializer.Deserialize<UpdateOperationResult>(resultContents, UpdaterWorker.SerializerOptions)!;
Assert.Equal(ErrorType.MissingFile, result.ErrorType);
Assert.Equal(Path.Combine(temporaryDirectory.DirectoryPath, "this.file.does.not.exist.targets"), result.ErrorDetails.ToString());
Assert.Equal(Path.Combine(temporaryDirectory.DirectoryPath, "this.file.does.not.exist.targets"), result.ErrorDetails!.ToString());
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void Equal<T>(
return;
}

Assert.True(false, GetAssertMessage(expected, actual, comparer, message));
Assert.Fail(GetAssertMessage(expected, actual, comparer, message));
}

private static bool SequenceEqual<T>(
Expand Down

0 comments on commit 8030b6d

Please sign in to comment.