Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource committed Dec 13, 2024
1 parent 12acac9 commit 3bc0c57
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ private void VerifyDatabaseContents()
var serializedCompilationDatabase = fileSystemService.File.ReceivedCalls().Single().GetArguments()[1] as string;
var compilationDatabaseEntries = JsonConvert.DeserializeObject<CompilationDatabaseEntry[]>(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}"]});
}
}

0 comments on commit 3bc0c57

Please sign in to comment.