Exemple #1
0
        public void CompareTo_ReturnsExpectedSign(string postalCodeBefore, string postalCodeAfter)
        {
            var b = new BOPostalCode(postalCodeBefore);
            var a = new BOPostalCode(postalCodeAfter);

            Assert.AreEqual(Math.Sign(-1), Math.Sign(b.CompareTo(a)));
            Assert.AreEqual(Math.Sign(1), Math.Sign(a.CompareTo(b)));
        }