Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created August 16, 2012 21:03
Show Gist options
  • Select an option

  • Save mgroves/3373650 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/3373650 to your computer and use it in GitHub Desktop.
Any way to write this better?
// foos and bars are both List<string>
foreach (var foo in foos)
{
bars.Any(e => e.Contains("something" + foo)).ShouldBeTrue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment