public void ExceptionsThrownMustBeDerivedFromConventionSpecification_FailsIfExceptionDoesNotDeriveFromCorrectBase()
        {
            var result = typeof(BadExceptionThrower)
                         .MustConformTo(Convention.ExceptionsThrownMustBeDerivedFrom(typeof(DomainException)));

            result.IsSatisfied.Should().BeFalse();
            result.Failures.Should().HaveCount(1);
        }
 public void ExceptionsThrownMustBeDerivedFromConventionSpecification_Success()
 {
     typeof(GoodExceptionThrower)
     .MustConformTo(Convention.ExceptionsThrownMustBeDerivedFrom(typeof(DomainException)))
     .IsSatisfied
     .Should()
     .BeTrue();
 }