Пример #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");
		}