示例#1
0
		public void SaveAsPLTTest()
		{
			string source = @"D:\JawiExport\abd karim bin ishak.svg";
			Inkscape target = new Inkscape();
			target.SaveAsPLT(source,source.Replace(".svg",".plt"));
			target.Dispose();
		}
示例#2
0
		public void BreakApartTest()
		{
			Inkscape target = new Inkscape();
			target.OpenFile(@"G:\works\Output\abu bakar bin mohd hassan.svg");//mat saad bin jusoh.svg");
			target.BreakApart(@"D:\Export\abu bakar bin mohd hassan.svg");//mat saad bin jusoh.svg");
			target.Dispose();
		}
示例#3
0
		public void LaunchApplicationTest()
		{
			Inkscape target = new Inkscape();
			Process[] result = Process.GetProcessesByName("Inkscape");
			int notExpected = 0;
			int actual = result.Length;
			System.Diagnostics.Debug.WriteLine("Found in TaskManager: "+actual);
			Assert.AreNotEqual(notExpected,actual);
			target.Dispose();
		}
示例#4
0
		public void ExportToPLTTest()
		{
			string from = @"G:\works\Output\mat saad bin jusoh.svg.svg";
			string to = @"D:\Export\mat saad bin jusoh.svg.svg";
			
			Inkscape target = new Inkscape();
			target.OpenFile(from);
			target.BreakApart(to);
			target.SaveAsPLT(to,to.Replace(".svg",".plt"));
			target.Dispose();
		}
示例#5
0
		public void SaveAsFileTest()
		{
			Inkscape target = new Inkscape();
			target.SaveAsFile(@"G:\works\words\talib.hpgl");
		}
示例#6
0
		public void OpenFileTest()
		{
			Inkscape target = new Inkscape();
			//target.OpenFile(@"G:\works\words\talib.svg");//.ToUpper());
			target.OpenFile(@"G:\works\Output\mat saad bin jusoh.svg");
		}
示例#7
0
		public void OpenMenuTest()
		{
			Inkscape target = new Inkscape();
			target.OpenMenu(InkscapeMenu.File);
			target.ExecuteMenuByName("Open");
		}