public void GetIDTest() { SoilCodesGrid target = new SoilCodesGrid(); // TODO: Initialize to an appropriate value string ShapeSoilCodes = @"D:\DK_information\DKDomainNodes_LU_Soil_codes.shp"; target.BuildGrid(ShapeSoilCodes); int ec = 0; List <int> errors = new List <int>(); using (HydroNumerics.Geometry.Shapes.ShapeReader sr = new Geometry.Shapes.ShapeReader(ShapeSoilCodes)) { foreach (var c in sr.GeoData) { if ((int)c.Data["GRIDID"] != target.GetID((IXYPoint)c.Geometry)) { errors.Add((int)c.Data["GRIDID"]); } } } Assert.AreEqual(0, ec); }