public void TestDetectNonAddressToken()
        {
            var tokenScanner = new TokenScannerContactAddress();

            string contactLine = "George Jefferson";
            Assert.That(tokenScanner.IsAddress(contactLine), Is.False);
        }
        public void TestDetectAddressToken()
        {
            var tokenScanner = new TokenScannerContactAddress();

            string contactLine = "Ithaca, NY 14850";
            Assert.That(tokenScanner.IsAddress(contactLine), Is.True);
        }
        public void TestDetectAddressTokenCalifornia()
        {
            var tokenScanner = new TokenScannerContactAddress();

            string contactLine = "Beverly Hills, CA 90210";
            Assert.That(tokenScanner.IsAddress(contactLine), Is.True);
        }
        public int NextBoundary(ArrayList contactInfo)
        {
            var addressScanner = new TokenScannerContactAddress();

            int line = 1;

            foreach(string contactLine in contactInfo)
            {
                if (addressScanner.IsAddress(contactLine))
                {
                    return line;
                }

                line++;
            }

            return line;
        }