title: NUnit TestCase with Generics
body: <p><strong>Is there any way to pass generic types using a TestCase to a test in NUnit?</strong></p>
  
  <p>This is what I would like to do but the syntax is not correct...</p>
  
  <pre><code>[Test]
  [TestCase&lt;IMyInterface, MyConcreteClass&gt;]
  public void MyMethod_GenericCall_MakesGenericCall&lt;TInterface, TConcreteClass&gt;()
  {
      // Arrange
  
      // Act
      var response = MyClassUnderTest.MyMethod&lt;TInterface&gt;();
  
      // Assert
      Assert.IsInstanceOf&lt;TConcreteClass&gt;(response);
  }
  </code></pre>
  
  <p>Or if not, what is the best way to achieve the same functionality (obviously I'll have multiple TestCases in the real code)?</p>
  
  <p><strong>Update with another example...</strong></p>
  
  <p>Here is another example with a single generic type passed...</p>
  
  <pre><code>[Test]
  [TestCase&lt;MyClass&gt;("Some response")]
  public void MyMethod_GenericCall_MakesGenericCall&lt;T&gt;(string expectedResponse)
  {
      // Arrange
  
      // Act
      var response = MyClassUnderTest.MyMethod&lt;T&gt;();
  
      // Assert
      Assert.AreEqual(expectedResponse, response);
  }
  </code></pre>