public void APITestConnectionAndCapabilities() { // intialize the connection. var apiInstance = new APIConnection("http://api06.dev.openstreetmap.org/", "osmsharp", "osmsharp"); // get capabilities. APICapabilities apiCapabilities = apiInstance.GetCapabilities(); // check result. Assert.AreEqual(0.25, apiCapabilities.AreaMaximum); Assert.AreEqual(0.6, apiCapabilities.VersionMinimum); Assert.AreEqual(0.6, apiCapabilities.VersionMaximum); Assert.AreEqual(5000, apiCapabilities.TracePointsPerPage); Assert.AreEqual(2000, apiCapabilities.WayNodesMaximum); Assert.AreEqual(300, apiCapabilities.TimeoutSeconds); Assert.AreEqual(50000, apiCapabilities.ChangeSetsMaximumElement); }