Example #1
0
        public void SingleLocationIsParsed()
        {
            var parser = new TribePadLocationParser();

            var locations = parser.ParseLocations(Properties.Resources.TribePadJobSingleLocation);

            Assert.AreEqual(1, locations.Count);
            Assert.AreEqual("Lewes", locations[0]);
        }
Example #2
0
        public void MultipleLocationsAreParsed()
        {
            var parser = new TribePadLocationParser();

            var locations = parser.ParseLocations(Properties.Resources.TribePadJobMultipleLocationsSeparatedByCommaSpace);

            Assert.AreEqual(4, locations.Count);
            Assert.AreEqual("Lewes", locations[0]);
            Assert.AreEqual("Uckfield", locations[1]);
            Assert.AreEqual("Crowborough", locations[2]);
            Assert.AreEqual("Forest Row", locations[3]);
        }