public void GetMaxThrowsExceptionWithNullTypeTest() { var target = new RandomGenerator(); Action action = () => target.GetMax(null); action.ShouldThrow<ArgumentNullException>(); }