public void TestCacheAddFeature() { using (ShimsContext.Create()) { client.Geometry.MapPoint p = new client.Geometry.MapPoint(0.0, 0.0); clientfake.ShimGraphic g = new clientfake.ShimGraphic(); clientfake.ShimUniqueValueRenderer r = new clientfake.ShimUniqueValueRenderer(); Dictionary <String, Object> attributes = new Dictionary <String, Object>(); attributes["uniquedesignation"] = "1-1"; attributes["higherformation"] = "1"; g.AttributesGet = () => { return(attributes); }; g.GeometryGet = () => { return(p); }; Dictionary <String, String> fields = new Dictionary <String, String>(); fields["UID"] = "uniquedesignation"; fields["HF"] = "higherformation"; fields["LABELS"] = "uniquedesignation"; fields["DESCFLDS"] = null; fields["DESCFIELD"] = null; int count = cache.RetrieveFeatureCache("UNITS").Count; cache.AddFeature("UNITS", g, "", "{uniquedesignation}", fields, r); Assert.IsTrue(cache.RetrieveFeatureCache("UNITS").Count > count); } }