title: How to use Fluent Assertions to test for exception in inequality tests?
body: <p>I'm trying to write a unit test for a greater than overridden operator using Fluent Assertions in C#. The greater than operator in this class is supposed to throw an exception if either of the objects are null.</p>
  
  <p>Usually when using Fluent Assertions, I would use a lambda expression to put the method into an action. I would then run the action and use <code>action.ShouldThrow&lt;Exception&gt;</code>. However, I can't figure out how to put an operator into a lambda expression.</p>
  
  <p>I would rather not use NUnit's <code>Assert.Throws()</code>, the <code>Throws</code> Constraint, or the <code>[ExpectedException]</code> attribute for consistencies sake.</p>