public void VerifyClassThatDoesNotOverrideObjectEqualsDoesNothing()
 {
     // Fixture setup
     var dummyComposer = new Fixture();
     var sut = new EqualsSelfAssertion(dummyComposer);
     // Exercise system and verify outcome
     Assert.DoesNotThrow(() =>
         sut.Verify(typeof(ClassThatDoesNotOverrideObjectEquals)));
     // Teardown
 }
 public void VerifyWellBehavedEqualsSelfOverrideDoesNotThrow()
 {
     // Fixture setup
     var dummyComposer = new Fixture();
     var sut = new EqualsSelfAssertion(dummyComposer);
     // Exercise system and verify outcome
     Assert.DoesNotThrow(() =>
         sut.Verify(typeof(WellBehavedEqualsSelfObjectOverride)));
     // Teardown            
 }
 public void VerifyNullMethodThrows()
 {
     // Fixture setup
     var dummyComposer = new Fixture();
     var sut = new EqualsSelfAssertion(dummyComposer);
     // Exercise system and verify outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.Verify((MethodInfo)null));
     // Teardown
 }
 public void VerifyIllbehavedEqualsSelfBehaviourThrows()
 {
     // Fixture setup
     var dummyComposer = new Fixture();
     var sut = new EqualsSelfAssertion(dummyComposer);
     // Exercise system and verify outcome
     Assert.Throws<EqualsOverrideException>(() =>
         sut.Verify(typeof(IllBehavedEqualsSelfObjectOverride)));
     // Teardown
 }