aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/Embroidery
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-02-23 20:15:36 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-02-23 20:15:36 +0200
commit17612c08da93c75d4c941a643bc7602c18f351d8 (patch)
tree7fb879ef52d5460149b199f752279c3889cb5271 /Software/Visual_Studio/Tango.UnitTesting/Embroidery
parentd7c8a8e9a6320ade6098e0d8e182c7ada4e30a97 (diff)
downloadTango-17612c08da93c75d4c941a643bc7602c18f351d8.tar.gz
Tango-17612c08da93c75d4c941a643bc7602c18f351d8.zip
Implemented auto DTO generation.
Implemented mapping of DTO <=> Observables. Organization of unit tests. Removed DELETED from ADDRESS & CONTACT.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/Embroidery')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs
new file mode 100644
index 000000000..cf72cd2c5
--- /dev/null
+++ b/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs
@@ -0,0 +1,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.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<AnalyzeInput, AnalyzeOutput> nativePMR = new NativePMR<AnalyzeInput, AnalyzeOutput>(AnalyzeEmbroideryFile);
+ AnalyzeOutput output = nativePMR.Invoke(input);
+ }
+ }
+}