title: XUnit InlineData with Objects?
body: <p>Recently we have been trying Unit Testing in a new project, now that we want to pass a Object to our test method with <code>[InlineData]</code>, so we can utilize the same test method multiple times with multiple different data inputs.</p>
  
  <p><code>[ClassData]</code> and <code>[MemberData]</code> are also available, but do not seem to offer a solution, as to my understanding.</p>
  
  <p>Basically, is there a way to pass Objects with XUnit, like so:</p>
  
  <pre><code>[Theory]
  [InlineData(new Object { Attribute = 1 })]
  public void Test(Object obj) 
  {
      // Assert
      Xunit.Assert.NotNull(obj.Attribute);
  }
  </code></pre>
  
  <p>Or is this not the correct convention or usage?</p>
  
  <p>Passing <code>int</code>'s and <code>string</code>'s works fine using <code>[InlineData]</code></p>