public void BboxIntilizationUserString() { string expected = "bbox="; Bbox Bbox = new Bbox("UserString"); expected += "UserString"; Assert.AreEqual(expected, Bbox.GetPartUrl()); }
public void BboxGetPartUrlStandart2() { Bbox Bbox = new Bbox(latTopLeft, lonTopLeft, latDownRigth, lonDownRigth); string result = $"bbox={Bbox.TopLeftPointLon.ToString().Replace(',', '.')}" + $",{Bbox.TopLeftPointLat.ToString().Replace(',', '.')}~" + $"{Bbox.DownRightPointLon.ToString().Replace(',', '.')}" + $",{Bbox.DownRightPointLat.ToString().Replace(',', '.')}"; Assert.AreEqual(result, Bbox.GetPartUrl()); }