public static void NewArgumentOutOfRangeExceptionStringObjectTest( [Values(null, "", "param")] string paramName, [Values(null, "", "value")] object value ) { Assert.That(ExceptionUtilities.NewArgumentOutOfRangeException(paramName, value), Is.InstanceOf <ArgumentOutOfRangeException>() .With.Property("ParamName").EqualTo(paramName) .And.With.Property("ActualValue").EqualTo(value) ); }