public void SameTwoPostCodes_EquelEquel_ShouldBeTrue(int?left, int?right) { PostCodeIL postCodeIL_left = left; PostCodeIL postCodeIL_right = right; Assert.True(postCodeIL_left == postCodeIL_right); }
public void PostCodeILTypeShouldExceptIntValue() { PostCodeIL postCode = 1234567; Assert.True(postCode == 1234567); Assert.True(1234567.Equals(postCode)); }
public void PostCodeWithValidValueWhenComparingToNullShouldReturnNotEquel() { PostCodeIL postCode1 = 1234567; PostCodeIL postCode2 = null; Assert.True(postCode1 != postCode2); }
public void TwoNotEquelPostCodesEquelShoudReturnFalse() { PostCodeIL postCode1 = 1234567; PostCodeIL postCode2 = 1234566; Assert.False(postCode1.Equals(postCode2)); }
public void TwoEquelPostCodesEquelShoudReturnTrue() { PostCodeIL postCode1 = 1234567; PostCodeIL postCode2 = 1234567; Assert.True(postCode1.Equals(postCode2)); }
public void TwoEquelPostCodesHashcodesShouldBeEquel() { PostCodeIL postCode1 = 1234567; PostCodeIL postCode2 = 1234567; Assert.Equal(postCode1.GetHashCode(), postCode2.GetHashCode()); }
public void DifferentTwoPostCodes_NotEquel_ShouldBeTrue(int?left, int?right) { PostCodeIL postCodeIL_right = right; Assert.True(left != postCodeIL_right); }
public void ValidPostCodeILWhenEquelToNullShouldBeFalse() { PostCodeIL postCode = 1234567; Assert.False(postCode.Equals(null)); }