public void Should_fail_when_acquiring_slots_had_been_turned_off() { boundedResultsQueue.AcquireFreeResultOrWait(); boundedResultsQueue.TurnOffAcquiringSlots(); Action action = () => boundedResultsQueue.AcquireFreeResultOrWait(); action.Should().Throw <InvalidOperationException>(); }