From 3bc0c575e3b27a3a89b2dfbcd746d052a43622b6 Mon Sep 17 00:00:00 2001 From: Georgii Borovinskikh Date: Fri, 13 Dec 2024 12:11:39 +0100 Subject: [PATCH] upd --- .../CFamily/VcxProject/VCXCompilationDatabaseStorageTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Integration.Vsix.UnitTests/CFamily/VcxProject/VCXCompilationDatabaseStorageTests.cs b/src/Integration.Vsix.UnitTests/CFamily/VcxProject/VCXCompilationDatabaseStorageTests.cs index b553ad568..7fbeb84cb 100644 --- a/src/Integration.Vsix.UnitTests/CFamily/VcxProject/VCXCompilationDatabaseStorageTests.cs +++ b/src/Integration.Vsix.UnitTests/CFamily/VcxProject/VCXCompilationDatabaseStorageTests.cs @@ -184,7 +184,6 @@ private void VerifyDatabaseContents() var serializedCompilationDatabase = fileSystemService.File.ReceivedCalls().Single().GetArguments()[1] as string; var compilationDatabaseEntries = JsonConvert.DeserializeObject(serializedCompilationDatabase); var compilationDatabaseEntry = compilationDatabaseEntries.Single(); - compilationDatabaseEntry.Should().BeEquivalentTo(new CompilationDatabaseEntry { Directory = SourceDirectory, File = SourceFilePath, Command = CompileCommand, Environment = default}, options => options.Excluding(x => x.Environment)); - compilationDatabaseEntry.Environment.Should().Contain([$"{CustomVariableName}={CustomVariableValue}", $"INCLUDE={EnvIncludeValue}"]); + compilationDatabaseEntry.Should().BeEquivalentTo(new CompilationDatabaseEntry { Directory = SourceDirectory, File = SourceFilePath, Command = CompileCommand, Environment = [$"INCLUDE={EnvIncludeValue}", $"{CustomVariableName}={CustomVariableValue}"]}); } }