public void OpenDialogeBox() { var xmlReader = new ReadXml(); if (xmlReader.checkXmlPath()) { var drawingList = new List <string>(); using (var _form = new PurgeAttributeForm()) { _form.SetTabIndex(1); var result = _form.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { drawingList = _form.AttributeDrawingList; } if (result == System.Windows.Forms.DialogResult.None) { return; } ReplaceStringValue(drawingList, _form.AttBlockname, _form.LinkattAttributeName, _form.LinkAttValue, _form.ChangeattAttributeName, _form.ChangeAttValue); } } }
public void checkXMLPath() { var readXml = new ReadXml(); Assert.AreEqual(true, readXml.checkXmlPath()); }