public void IbansWithDifferentDataShoouldHaveDifferenetHashCode() { Iban iban1 = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2045654526").Build(); Iban iban2 = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2000145399").Build(); Assert.AreNotEqual((object)iban1.GetHashCode(), iban2.GetHashCode()); }
public void IbansWithSameDataShouldHaveSameHashCode() { Iban iban1 = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2000145399").Build(); Iban iban2 = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2000145399").Build(); Assert.AreEqual((object)iban1.GetHashCode(), iban2.GetHashCode()); }
public void IbansWithSameDataShouldHaveSameHashCode() { Iban iban1 = new IbanBuilder().CountryCode( CountryCode.GetCountryCode( "CZ" ) ).BankCode( "0800" ).AccountNumberPrefix( "000019" ).AccountNumber( "2000145399" ).Build(); Iban iban2 = new IbanBuilder().CountryCode( CountryCode.GetCountryCode( "CZ" ) ).BankCode( "0800" ).AccountNumberPrefix( "000019" ).AccountNumber( "2000145399" ).Build(); Assert.AreEqual( iban1.GetHashCode(), iban2.GetHashCode() ); }
public void IbansWithDifferentDataShoouldHaveDifferenetHashCode() { Iban iban1 = new IbanBuilder().CountryCode( CountryCode.GetCountryCode( "CZ" ) ).BankCode( "0800" ).AccountNumberPrefix( "000019" ).AccountNumber( "2045654526" ).Build(); Iban iban2 = new IbanBuilder().CountryCode( CountryCode.GetCountryCode( "CZ" ) ).BankCode( "0800" ).AccountNumberPrefix( "000019" ).AccountNumber( "2000145399" ).Build(); Assert.AreNotEqual( iban1.GetHashCode(), iban2.GetHashCode() ); }