title: unit testing c# properties
body: <p>I am working with a class that has lots of properties. For example;</p>
  
  <pre><code>public class Bib
  {        
      public int PartQty { get; set; }
  }
  </code></pre>
  
  <p>Now to unit test; I did the xUnit test something like </p>
  
  <pre><code>    [Fact]
      public void CanGetAndSetPartQuantity()
      {
          const int expected = 3;
  
          var target = new Bib() {PartQty = expected};
  
          Assert.Equal(expected, target.PartQty);
      }
  </code></pre>
  
  <p>here, I hate how I am hard-coding expected = 3. What's a good way to test this property for accessor and mutator?</p>