public void Predecessor_ValidInput_ReturnsCorrectPostalCode(string postalCode, string postalCodePredecessor)
 {
     var code = new DZPostalCode(postalCode);
     var codePredecessor = new DZPostalCode(postalCodePredecessor);
     Assert.AreEqual(codePredecessor, code.Predecessor);
     Assert.AreEqual(codePredecessor.ToString(), code.Predecessor.ToString());
     Assert.AreEqual(codePredecessor.ToHumanReadableString(), code.Predecessor.ToHumanReadableString());
 }
Ejemplo n.º 2
0
        public void Successor_ValidInput_ReturnsCorrectPostalCode(string postalCode, string postalCodeSuccessor)
        {
            var code          = new DZPostalCode(postalCode);
            var codeSuccessor = new DZPostalCode(postalCodeSuccessor);

            Assert.AreEqual(codeSuccessor, code.Successor);
            Assert.AreEqual(codeSuccessor.ToString(), code.Successor.ToString());
            Assert.AreEqual(codeSuccessor.ToHumanReadableString(), code.Successor.ToHumanReadableString());
        }