public void TestCacheUpdateFeature()
 {
     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);
         String coords = cache.RetrieveFeatureCache("UNITS")["1-1"]["COORDS"].ToString();
         client.Geometry.MapPoint p1 = new client.Geometry.MapPoint(1.0, 0.0);
         g.GeometryGet = () => { return(p1); };
         cache.UpdateFeature("UNITS", "1-1", "", "{uniquedesignation}", g, fields);
         String newcoords = cache.RetrieveFeatureCache("UNITS")["1-1"]["COORDS"].ToString();
         Assert.AreNotEqual(newcoords, coords);
     }
 }