public void ThrowIfNull() { ILocationShuffler locationShufflerUnderTest = new GuidLocationShuffler(); Func <IReadOnlyCollection <Location> > act = () => locationShufflerUnderTest.ShuffleAndTake(null !, 0); act.Should().ThrowExactly <ArgumentNullException>(); }