private static ITestCommandContext GuardNull(ITestCommandContext context) { if (context == null) throw new ArgumentNullException("context"); return context; }
/// <summary> /// Initializes a new instance of the <see cref="ParameterizedCommand"/> class. /// </summary> /// <param name="context"> /// Information of this test command. /// </param> public ParameterizedCommand(ITestCommandContext context) : base(GuardNull(context).TestMethod, null, MethodUtility.GetTimeoutParameter(context.TestMethod)) { this.context = context; }