public void CheckForAndManageNodeSizeCase_Adds_Node_Height_Attrib_If_Size_Is_Found(int index, string[] headerNames, string[] expectedHeaderNameOrder) { // assumes size has been identified but changed to Constant.NodeWidth already var nodePropertyHeaders = new List<HeaderField>(); // simulate already constructed list of NodePropertyHeaders for (int i = 0; i < headerNames.Length; i++) { var name = headerNames[i]; nodePropertyHeaders.Add(new HeaderField(name, VnaFileSection.NodeProperties, i, null)); } var reader = new VnaAdjListReader(); reader.CheckForAndManageNodeSizeCase(nodePropertyHeaders); Assert.Equal(expectedHeaderNameOrder.Length, nodePropertyHeaders.Count); for(int i=0; i<expectedHeaderNameOrder.Length; i++) { Assert.Equal(expectedHeaderNameOrder[i], nodePropertyHeaders[i].AttribColName); } }