Quantcast
Viewing all articles
Browse latest Browse all 1402

Created Issue: Add overload for Collection assertions Contain and ContainInOrder that takes a params argument [12315]

Now you need to write:

results.OpenAndTurnoverEvents.Should().ContainInOrder(new[] { firstEvent.Code, secondEvent.Code, thirdEvent.Code });

With a params argument this would read better:

results.OpenAndTurnoverEvents.Should().ContainInOrder(firstEvent.Code, secondEvent.Code, thirdEvent.Code);

The only thing is that you cannot add a reason and readonArgs, but when you don't need that

Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>