using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Tango.PMR; using Tango.PMR.Embroidery; namespace Tango.UnitTesting.Embroidery { [TestClass] [TestCategory("Embroidery")] public class Embroidery_TST { [DllImport("Tango.Embroidery.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "AnalyzeEmbroideryFile")] public static extern int AnalyzeEmbroideryFile(IntPtr data, int size, ref IntPtr output); [TestMethod] public void Analyze_Embroidery_File() { AnalyzeInput input = new AnalyzeInput(); input.FilePath = "C:\\Users\\Roy\\Desktop\\RGB_Strips.pes"; NativePMR nativePMR = new NativePMR(AnalyzeEmbroideryFile); AnalyzeOutput output = nativePMR.Invoke(input); } } }