title: How do I specify test method parameters with TestDriven.NET?
body: <p>I'm writing unit tests with NUnit and the TestDriven.NET plugin. I'd like to provide parameters to a test method like this :</p>
  
  <pre><code>[TestFixture]
  public class MyTests
  {
      [Test]
      public void TestLogin(string userName, string password)
      {
          // ...
      }
  
      ...
  }
  </code></pre>
  
  <p>As you can see, these parameters are private data, so I don't want to hard-code them or put them in a file. Actually I don't want to write them <strong>anywhere</strong>, I want to be prompted each time I run the test.</p>
  
  <p>When I try to run this test, I get the following message in the output window :</p>
  
  <blockquote>
    <p>TestCase 'MyProject.MyTests.TestLogin' not executed: No arguments were provided</p>
  </blockquote>
  
  <p>So my question is, how do I provide these parameters ? I expected TestDriven.NET to display a prompt so that I can enter the values, but it didn't...</p>
  
  <p>Sorry if my question seems stupid, the answer is probably very simple, but I couldn't find anything useful on Google...</p>
  
  <hr>
  
  <p>EDIT: I just found a way to do it, but it's a dirty trick...</p>
  
  <pre><code>    [Test, TestCaseSource("PromptCredentials")]
      public void TestLogin(string userName, string password)
      {
          // ...
      }
  
      static object[] PromptCredentials
      {
          get
          {
              string userName = Interaction.InputBox("Enter user name", "Test parameters", "", -1, -1);
              string password = Interaction.InputBox("Enter password", "Test parameters", "", -1, -1);
              return new object[]
              {
                  new object[] { userName, password }
              };
          }
      }
  </code></pre>
  
  <p>I'm still interested in a better solution...</p>