mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
enriched tests for building node deletion .
This commit is contained in:
parent
a91ff89091
commit
87503d9ff9
1 changed files with 11 additions and 0 deletions
|
@ -183,4 +183,15 @@ PlayerControl=no
|
|||
ASSERT_EQ(file.GetInteger(houseName, "NodeCount"), 23);
|
||||
ASSERT_EQ(file.GetString(houseName, GetNodeID(0)), "NALASR,89,64");
|
||||
ASSERT_EQ(file.GetString(houseName, GetNodeID(22)), "NALASR,79,24");
|
||||
|
||||
// keep only the first one for test
|
||||
for (auto idx = 22; idx > 0; --idx) {
|
||||
DeleteBuildingNodeFrom(houseName, idx, file);
|
||||
}
|
||||
ASSERT_EQ(file.GetInteger(houseName, "NodeCount"), 1);
|
||||
ASSERT_EQ(file.GetString(houseName, GetNodeID(0)), "NALASR,89,64");
|
||||
|
||||
// now remove the last one
|
||||
DeleteBuildingNodeFrom(houseName, 0, file);
|
||||
ASSERT_EQ(file.GetInteger(houseName, "NodeCount"), 0);
|
||||
}
|
Loading…
Add table
Reference in a new issue