public void ShouldContainParametersTypeInExceptionMessage(EqualityOperatorOverloadAssertion sut)
        {
            var exception = Record.Exception(() => sut.Verify(typeof(ClassWhichDoesNotOverloadsEqualityOperator)));

            Assert.Contains(
                string.Format("with parameters of type {0}", typeof (ClassWhichDoesNotOverloadsEqualityOperator).Name),
                exception.Message);
        }
 public void ShouldThrowWhenEqualityOperatorIsOverloadedWithArgumentsOtherThanContainingType(
     EqualityOperatorOverloadAssertion sut)
 {
     EqualityTestAssert.ExceptionWasThrownForTestType
         <EqualityOperatorException, ClassThatOverloadsEqualityOperatorWithArgumentsOtherThanContainingType>(sut);
 }
 public void ShouldThrowWhenEqualityOperatorIsNotOverloaded(EqualityOperatorOverloadAssertion sut)
 {
     EqualityTestAssert
         .ExceptionWasThrownForTestType<EqualityOperatorException, ClassWhichDoesNotOverloadsEqualityOperator>(
             sut);
 }
 public void ShouldNotThrowWhenEqualityOperatorIsOverloaded(EqualityOperatorOverloadAssertion sut)
 {
     EqualityTestAssert.ExceptionWasNotThrownForTestType<ClassWhichOverloadsEqualityOperator>(sut);
 }
        public void ShouldContainTypeInExceptionMessage(EqualityOperatorOverloadAssertion sut)
        {
            var exception = Record.Exception(() => sut.Verify(typeof (ClassWhichDoesNotOverloadsEqualityOperator)));

            Assert.Contains(typeof (ClassWhichDoesNotOverloadsEqualityOperator).Name, exception.Message);
        }
 public void ShouldBeIdiomaticAssertion(EqualityOperatorOverloadAssertion sut)
 {
     Assert.IsAssignableFrom<IdiomaticAssertion>(sut);
 }