From 6b44bf27f9e9824b0479cfa0bf8bada70f5927d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 15:20:44 +0000 Subject: [PATCH 1/2] Bump Meziantou.Analyzer and Microsoft.NETFramework.ReferenceAssemblies Bumps [Meziantou.Analyzer](https://github.com/meziantou/Meziantou.Analyzer) and [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet). These dependencies needed to be updated together. Updates `Meziantou.Analyzer` from 2.0.199 to 2.0.201 - [Release notes](https://github.com/meziantou/Meziantou.Analyzer/releases) - [Commits](https://github.com/meziantou/Meziantou.Analyzer/compare/2.0.199...2.0.201) Updates `Microsoft.NETFramework.ReferenceAssemblies` from 1.0.3 to 1.0.3 - [Commits](https://github.com/Microsoft/dotnet/commits) --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-version: 2.0.201 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.NETFramework.ReferenceAssemblies dependency-version: 1.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index f540c60..5dfb7d4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -35,7 +35,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 4430597d7f3092a3e94783a464b2f862e551ccc3 Mon Sep 17 00:00:00 2001 From: Jonas Nyrup Date: Mon, 5 May 2025 21:42:30 +0200 Subject: [PATCH 2/2] Explicitly use reference equality --- Tests/FluentAssertions.DataSets.Specs/DataSpecs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/FluentAssertions.DataSets.Specs/DataSpecs.cs b/Tests/FluentAssertions.DataSets.Specs/DataSpecs.cs index 1500c07..58b6734 100644 --- a/Tests/FluentAssertions.DataSets.Specs/DataSpecs.cs +++ b/Tests/FluentAssertions.DataSets.Specs/DataSpecs.cs @@ -306,8 +306,8 @@ public DataSet ToUntypedDataSet() foreach (var constraint in typedTable.Constraints.Cast()) { if (!Relations.Cast().Any(rel => - rel.ChildKeyConstraint == constraint || - rel.ParentKeyConstraint == constraint)) + ReferenceEquals(rel.ChildKeyConstraint, constraint) || + ReferenceEquals(rel.ParentKeyConstraint, constraint))) { if (constraint is UniqueConstraint uniqueConstraint) {