static void Main(string[] args) { //20121104 SvgRepair repair = new SvgRepair();//@"G:\works\Output"); repair.Patch(); Console.Read(); }
public void PatchLineTest() { SvgRepair repair = new SvgRepair("D:\\Output"); string target = "sodipodi:nodetypes=\"ccccccccccccccccccccccccccccssscsssssccscccccssssscssssccsssscsssssccccscsccssccccccccssccccsscscsscscsscccscssccsccssssssccssssssssccc\""; string expected = ""; string actual = repair.PatchLine(target); Assert.AreEqual(expected,actual); target = "sodipodi:linespacing=\"125%\""; actual = repair.PatchLine(target); Assert.AreEqual(expected,actual); target = "inkscape:connector-curvature=\"0\""; actual = repair.PatchLine(target); Assert.AreEqual(expected,actual); }