public void CreateEdgeAttribs_Adds_Cols_To_EdgeAttribs_Based_On_Headers_Passed_In(int index, string[] headerNames, Type[] dataTypes, HeaderMatchType[] matchTypes) { var net = Blob.TestSupport.Network.BasicAdjListGenerator.GenerateAdjListWithDataAttribs(3, 0, false, false, true); var headers = new List<HeaderField>(); for (int i = 0; i < headerNames.Length; i++) { var name = headerNames[i]; headers.Add(new HeaderField(name, VnaFileSection.EdgeData, i, null) { AttribColumnType = dataTypes[i] }); } Assert.Equal(0, net.EdgeDataAttributeCount); var reader = new VnaAdjListReader(); reader.CreateEdgeAttribs(net, headers); Assert.Equal(headerNames.Length, net.EdgeDataAttributeCount); for (int i = 0; i < dataTypes.Length; i++) { Assert.Equal(dataTypes[i], net.EdgeDataAttributeTypes[i]); Assert.Equal(headerNames[i], net.EdgeDataAttributeNames[i]); } }