Пример #1
0
        public void Successor_LastInRangeWithEnd_ReturnsNull(string postalCode)
        {
            var code      = new PTPostalCode(postalCode);
            var expansion = code.ExpandPostalCodeAsHighestInRange();

            Assert.IsNull(expansion.Successor);
        }
Пример #2
0
        public void Successor_ValidInputWithEnd_ReturnsCorrectPostalCode(string postalCode, string postalCodeSuccessor)
        {
            var code      = new PTPostalCode(postalCode);
            var expansion = code.ExpandPostalCodeAsHighestInRange();

            Assert.AreEqual(postalCodeSuccessor, expansion.Successor.ToString());
        }
 public void Successor_LastInRangeWithEnd_ReturnsNull(string postalCode)
 {
     var code = new PTPostalCode (postalCode);
     var expansion = code.ExpandPostalCodeAsHighestInRange ();
     Assert.IsNull(expansion.Successor);
 }
 public void Successor_ValidInputWithEnd_ReturnsCorrectPostalCode(string postalCode, string postalCodeSuccessor)
 {
     var code = new PTPostalCode (postalCode);
     var expansion = code.ExpandPostalCodeAsHighestInRange ();
     Assert.AreEqual(postalCodeSuccessor, expansion.Successor.ToString());
 }