Skip to content

Commit d700e46

Browse files
authored
Descriptionノードが属性情報の入れ子内に存在するケースに対応。gml名が大文字で始まるケースに対応。 (#266)
* Descriptionノードが属性情報の入れ子内に存在するケースに対応。gml名が大文字で始まるケースに対応。 * fix test
1 parent ee3f893 commit d700e46

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

3rdparty/libcitygml

wrappers/csharp/LibPLATEAU.NET/CSharpPLATEAU.Test/CityGML/NativeAttributeValueTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,10 @@ public void AsInt_Returns_GML_Value()
8181
[TestMethod]
8282
public void AsBool_Returns_GML_Value()
8383
{
84-
const string parentKey = "uro:buildingDetails";
85-
const string childKey = "energy:isHeated";
8684
const bool valueInGmlFile = true;
87-
var parentVal = attrMap[parentKey];
85+
var parentVal = attrMap["uro:buildingDetails"].AsAttrSet["uro:BuildingDetails"];
8886
var children = parentVal.AsAttrSet;
89-
bool actualVal = children[childKey].AsBool;
87+
bool actualVal = children["energy:isHeated"].AsBool;
9088
Assert.AreEqual(valueInGmlFile, actualVal);
9189
}
9290
}

0 commit comments

Comments
 (0)