public void TestPolygonGeoJsonObjectToEsriJsonList() { var multiPolyJson = TestResources.CoNcMultiPolygonGeoJson; var deserializedObject = this.deserial.Deserialize<MultiPolygonGeoJson>( new RestResponse<MultiPolygonGeoJson> { Content = multiPolyJson }); var test = new GeometryClasses(); PrivateType privateHelperObject = new PrivateType(typeof(GeometryClasses)); var output = (List<string>)privateHelperObject.InvokeStatic("MultiPolygonObjectToEsriJson", new object[]{ deserializedObject}); // var output = GeometryClasses.MultiPolygonObjectToEsriJson(deserializedObject); Assert.IsTrue(output.Count == 2); }