public void ReadHeaders_Populates_NodeAttribHeaders_List_If_State_Is_NodeProperties(int id, string[] inputs, string[] expectedResults) { var reader = new VnaAdjListReader(); Assert.Equal(0, reader.NodeDataHeaders.Count); Assert.Equal(0, reader.EdgeDataHeaders.Count); Assert.Equal(0, reader.NodePropertyHeaders.Count); Assert.Equal(0, reader.EdgePropertyHeaders.Count); reader.ReadHeaders(inputs, VnaFileSection.NodeProperties); Assert.Equal(0, reader.NodeDataHeaders.Count); Assert.Equal(0, reader.EdgeDataHeaders.Count); Assert.Equal(expectedResults.Length, reader.NodePropertyHeaders.Count); Assert.Equal(0, reader.EdgePropertyHeaders.Count); for (int i = 0; i < expectedResults.Length; i++) { Assert.False(string.IsNullOrWhiteSpace(reader.NodePropertyHeaders[i].AttribColName)); Assert.Equal(expectedResults[i], reader.NodePropertyHeaders[i].AttribColName); } }