title: How To write TestCase nunit test for keyPairValue
body: <p>I am looking for a way to pass keyValuePair into my test with TestCase</p>
  
  <pre><code>[TestCase&lt;KeyValuePair&lt;int,string&gt;&gt;(1,"XX")]
  public void someTest(KeyValuePair&lt;int,string&gt; expectedkeyValuePairs)
  {
      // do some thing;
  }
  </code></pre>
  
  <p>The answer is </p>
  
  <pre><code>[TestCase(1,"XXX")]
  public void someTest(int key,string value)
  {
      var expectedkeyValuePairs = new KeyValuePair&lt;int, string&gt;(key, value);
      // do some thing;
  }
  </code></pre>