public void ThrowsExceptionWhenCreatedWithNullTypeAndRegularExpressionTest() { var priority = Environment.TickCount; Action action = () => new ExecuteOrderRule(null, (Regex)null, priority); action.ShouldThrow<ArgumentNullException>(); } }