public void SerializeAndDeserializeXmlObject() { var serializedObj = xmlObject.Serialize(); var deserializedObj = serializedObj.Deserialize <WorkerXML>(); Assert.IsNotNull(serializedObj); Assert.IsNotNull(deserializedObj); }
protected void buttonOK_Click(object sender, EventArgs e) { MessageBox.Show(WorkMethods.Save(project)); WorkerXML.Serialize(project); }