public void TestToXML() { ListenerBase l = new UdpListener("127.0.0.1", 8080, ""); IViewer v = new TextViewer(); var a = new SessionMonitor(l, v); var c = new ConfigureSession(a); var b = c.Session; var xml_a = a.ToXml().InnerXml; var xml_b = b.ToXml().InnerXml; Assert.AreEqual(xml_a, xml_b); }
public void TestToXML() { Listeners.IListener l = new Listeners.UdpListener("127.0.0.1", 8080, ""); Viewers.IViewer v = new Viewers.textViewer(); SessionMonitor a = new SessionMonitor(l, v); ConfigureSession c = new ConfigureSession(a); Session b = c.Session; string xml_a = a.ToXml().InnerXml; string xml_b = b.ToXml().InnerXml; Assert.AreEqual(xml_a, xml_b); }