blob: ccd71fdc8ad092b4302b3c157dc9c586ddb45d3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
{
[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<AnalyzeInput, AnalyzeOutput> nativePMR = new NativePMR<AnalyzeInput, AnalyzeOutput>(AnalyzeEmbroideryFile);
AnalyzeOutput output = nativePMR.Invoke(input);
}
}
}
|