Ejemplo n.º 1
0
        public void Test_IsValidGeoJson_when_input_starts_wrong_returns_false1()
        {
            Random random = new Random();

            string input = "[\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [" + random.Next(100) + ", " + random.Next(100) + "]},\"properties\": {\"name\": \"Dinagat Islands\"}}";

            ValidationFunctions functions = new ValidationFunctions();

            bool result = functions.IsValidGeoJson(input);

            Assert.AreEqual(false, result);
        }