public void ThrowsExceptionWhenCreatedWithWhiteSpaceNameTest() { Action action = () => new IgnoreRule(typeof (string), " "); action.ShouldThrow<ArgumentException>(); } }