public void TestMakerConnect() { // expected string xmlContent = "<connect>" + "<n>3</n>" + "<n>4</n>" + "</connect>"; XDocument expected_doc = XDocument.Parse(xmlContent); // testing XElement connectxml = maker.ConnectXML(3, 4); Assert.IsTrue(XNode.DeepEquals(expected_doc.FirstNode, connectxml)); }