title: How to set DateTime as ValuesAttribute to unit test?
body: <p>I want to do something like this</p>
  
  <pre><code>[Test]
  public void Test([Values(new DateTime(2010, 12, 01), 
                           new DateTime(2010, 12, 03))] DateTime from, 
                   [Values(new DateTime(2010, 12, 02),
                           new DateTime(2010, 12, 04))] DateTime to)
  {
      IList&lt;MyObject&gt; result = MyMethod(from, to);
      Assert.AreEqual(1, result.Count);
  }
  </code></pre>
  
  <p>But I get the following error regarding parameters </p>
  
  <blockquote>
    <p>An attribute argument must be a
    constant expression, typeof expression
    or array creation expression of an</p>
  </blockquote>
  
  <p>Any suggestions?</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong> nice article about Parameterized tests in NUnit 2.5<br>
  <a href="http://www.pgs-soft.com/new-features-in-nunit-2-5-part-1-parameterized-tests.html" rel="noreferrer">http://www.pgs-soft.com/new-features-in-nunit-2-5-part-1-parameterized-tests.html</a></p>