예제 #1
0
파일: IbanTest.cs 프로젝트: jlnovais/Tools
        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());
        }
예제 #2
0
파일: IbanTest.cs 프로젝트: jlnovais/Tools
        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());
        }
예제 #3
0
        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() );
        }
예제 #4
0
        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() );
        }