public void ShouldThrowWhenInequalityOperatorIsOverloadedWithParametersOtherThanTypeDefiningOperator( InequalityOperatorOverloadAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <InequalityOperatorException, ClassWhichOverloadInequalityOperatorWithParametersOtherThanTypeDefiningOperator>(sut); }
public void ShouldNotThrowWhenGetHashCodeProducesHashBasedOnValues(GetHashCodeValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasNotThrownForTestType <ValueObjectHashCodeExample>(sut); }
public void ShouldThrowWhenGetHashCodeProducesHashBasedOnIdentity(GetHashCodeValueCheckAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <GetHashCodeValueCheckException, IdentityObjectHashCodeExample>(sut); }
public void ShouldThrowExceptionWhenIEquatableIsImplementedWithoutTypeThatImplementsInterface(IEquatableImplementedAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <IEquatableImplementedException, ClassThatImplementsIEquatableWithOtherType>(sut); }
public void ShouldThrowExceptionWhenIEquatableIsNotImplemented(IEquatableImplementedAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <IEquatableImplementedException, ClassWhichDoesNotImplementIEquatable>(sut); }
public void ShouldNotThrowExceptionWhenIEquatableIsImplemented(IEquatableImplementedAssertion sut) { EqualityTestAssert.ExceptionWasNotThrownForTestType <ClassThatImplementsIEquatable>(sut); }
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 ShouldThrowWhenIdentityCheckInEqualsImplementation(EqualsValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasThrownForTestType <EqualsValueCheckException, object>(sut); }
public void ShouldThrowWhenNotEveryCtorArgumentInfluenceEquality(EqualsValueCheckAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <EqualsValueCheckException, ValueObjectButSecondCtrArgDoesntTakePartInEqualsImpl>(sut); }
public void ShouldNotThrowWhenValueCheckInEqualsImplementation(EqualsValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasNotThrownForTestType <ValueObjectExample>(sut); }
public void ShouldNotThrowExceptionWhenEqualityOperatorPerformsValueCheck( EqualityOperatorValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasNotThrownForTestType <ClassWithEqualityOperatorValueCheck>(sut); }
public void ShouldThrowExceptionWhenIdentityCheckInEqualityOperator(EqualityOperatorValueCheckAssertion sut) { EqualityTestAssert .ExceptionWasThrownForTestType <EqualityOperatorValueCheckException, ClassWithEqualityOperatorIdentityCheck>(sut); }
public void ShouldNotThrowWhenIEquatablePerformsValueCheck(IEquatableValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasNotThrownForTestType <IEquatableWithValueCheck>(sut); }
public void ShouldThrowWhenIEquatableEqualsPerformsIdentityCheck(IEquatableValueCheckAssertion sut) { EqualityTestAssert.ExceptionWasThrownForTestType <IEquatableValueCheckException, IEquatableWithIdentityCheck> (sut); }