コード例 #1
0
        public void TwoEquelPostCodesEquelShoudReturnTrue()
        {
            PostCodeIL postCode1 = 1234567;
            PostCodeIL postCode2 = 1234567;

            Assert.True(postCode1.Equals(postCode2));
        }
コード例 #2
0
        public void TwoNotEquelPostCodesEquelShoudReturnFalse()
        {
            PostCodeIL postCode1 = 1234567;
            PostCodeIL postCode2 = 1234566;

            Assert.False(postCode1.Equals(postCode2));
        }
コード例 #3
0
        public void ValidPostCodeILWhenEquelToNullShouldBeFalse()
        {
            PostCodeIL postCode = 1234567;

            Assert.False(postCode.Equals(null));
        }