public void GivenNodeWhenWritingXmlThenIdAndLabelAreWritten() { GexfEdge edge1 = new GexfEdge(GexfEdgeType.Directed) { Id = "0", Source = "2", Target = "4" }; GexfEdge edge2 = new GexfEdge(GexfEdgeType.Directed) { Id = "1", Source = "3", Target = "5" }; GexfEdgeList edgeList = new GexfEdgeList(); edgeList.Add(edge1); edgeList.Add(edge2); XmlTestWriter writer = new XmlTestWriter(edgeList, XmlOutput); Assert.AreEqual(writer.ExpectedNormalizedXmlOutput, writer.ActualNormalizedXmlOutput); }