title: Fluent Assertions - Overriding comparison in ShouldBeEquivalentTo()
body: <p>I have the following DTO:</p>
  
  <pre><code>public class Dto
  {
      public DateTime Date { get; set; }
  }
  </code></pre>
  
  <p>And I'm trying to override the comparison of a property using this syntax as per the <a href="https://github.com/dennisdoomen/fluentassertions/wiki#object-graph-comparison" rel="nofollow">FA wiki</a>:</p>
  
  <pre><code>public void Override_test()
  {
      // Arrange
      var actual = new Dto { Date = DateTime.Now };
      var expected = new Dto { Date = DateTime.Now };
  
      // Act
  
      // Assert
      actual.ShouldBeEquivalentTo(expected, options =&gt; 
          options.Using&lt;DateTime&gt;(x =&gt; x.Subject.Should().BeCloseTo(DateTime.Now)));
  }
  </code></pre>
  
  <p>But the test does not compile.  I get this error:</p>
  
  <pre><code>Cannot implicitly convert type 'FluentAssertions.Equivalency.EquivalencyAssertionOptions&lt;FluentAssertions.ShouldBeEquivalentTo.Override.Dto&gt;.Restriction&lt;System.DateTime&gt;' to 'FluentAssertions.Equivalency.EquivalencyAssertionOptions&lt;FluentAssertions.ShouldBeEquivalentTo.Override.Dto&gt;'
  </code></pre>
  
  <p>Can anyone advise the correct syntax?</p>