public void NextValueWithTypeThrowsExceptionWhenMinimumGreaterThanMaximumTest() { var target = new RandomGenerator(); Action action = () => target.NextValue(typeof(double), 1, 0); action.ShouldThrow<ArgumentOutOfRangeException>(); }