Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-meseldzija-sonarsource committed Feb 3, 2025
1 parent c80725b commit 05ea7ee
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 287 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void AssertOnlyExpectedPluginsRequested(IEnumerable<Plugin> plugins)
public void AssertExpectedPluginRequested(Plugin plugin)
{
SuppliedPlugins.Should().NotBeEmpty("No plugins have been requested");
var suppliedPlugin = SuppliedPlugins.FirstOrDefault(x => string.Equals(plugin.Key, x.Key, System.StringComparison.Ordinal));
var suppliedPlugin = SuppliedPlugins.SingleOrDefault(x => x.Key == plugin.Key);
suppliedPlugin.Should().NotBeNull("Expected plugin was not requested. Id: {0}", plugin.Key);
suppliedPlugin.Version.Should().Be(plugin.Version);
suppliedPlugin.StaticResourceName.Should().Be(plugin.StaticResourceName);
Expand Down
Loading

0 comments on commit 05ea7ee

Please sign in to comment.