private string[] GetColumnData(bool selectedState) // For the form table { return(new string[] { OSMData.Name, selectedState.ToString(), GetCount(this.OSMData.NodeCount), GetCount(this.OSMData.WayCount), OSMData.ToString(), "View", OSMData.Description, this.GetLink(), }); }
public void TestKeyValueParsingA() // E.g. defined subfeatures without a primary feature { var miscA = new OSMTag("capacity=charging"); Assert.AreEqual(miscA.ToString(), "capacity=charging"); Assert.AreEqual(miscA.IsParent(), false); Assert.AreEqual(miscA.Key.ToString(), "capacity=*"); Assert.AreEqual(miscA.Key.IsParent(), true); }
public void TestKeyParsing() // E.g. those defined in MiscFeatures at Primary lvl { var randomA = new OSMTag("rental"); Assert.AreEqual(randomA.ToString(), "rental=*"); var randomB = new OSMTag("passenger"); Assert.AreEqual(randomB.ToString(), "passenger=*"); foreach (var item in new List <OSMTag> { randomA, randomB }) { Assert.AreEqual(item.IsParent(), true); } }