diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-22 14:10:42 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-22 14:10:42 +0200 |
| commit | 8c658845bdf60c9864d1c968b9420d40a789ca9d (patch) | |
| tree | 538625ca74648b457403c69d634b354975839a4e /Software/Visual_Studio/Tango.UnitTesting | |
| parent | 28f37792757709f1db89e6f5640ba3f7aa9f9069 (diff) | |
| download | Tango-8c658845bdf60c9864d1c968b9420d40a789ca9d.tar.gz Tango-8c658845bdf60c9864d1c968b9420d40a789ca9d.zip | |
Improved Stubs.UI.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Scripting_TST.cs | 45 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj | 5 |
2 files changed, 50 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Scripting_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Scripting_TST.cs new file mode 100644 index 000000000..e574e304e --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Scripting_TST.cs @@ -0,0 +1,45 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Tango.DAL.Remote.DB; +using Tango.BL.Entities; +using Tango.Settings; +using System.Linq; +using System.Collections.Generic; +using Tango.DBObservablesGenerator.CLI; +using Tango.Scripting; + +namespace Tango.UnitTesting +{ + [TestClass] + [TestCategory("Scripting")] + public class Scripting_TST + { + [TestMethod] + public void Parse_CSharp_Code() + { + String code = @"using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Scripting +{ + public void Do(int a, int b) +{ + +MyType type = new MyType(); + +type.number = 10; + + +} +}"; + + + ScriptParser parser = new ScriptParser(); + parser.ParseScript(code); + + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index 3845f1ecd..045e09360 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -79,6 +79,7 @@ <Compile Include="..\Versioning\GlobalVersionInfo.cs"> <Link>GlobalVersionInfo.cs</Link> </Compile> + <Compile Include="Scripting_TST.cs" /> <Compile Include="Embroidery_TST.cs" /> <Compile Include="Helper.cs" /> <Compile Include="Protobuf_TST.cs" /> @@ -129,6 +130,10 @@ <Project>{40073806-914e-4e78-97ab-fa9639308ebe}</Project> <Name>Tango.Protobuf</Name> </ProjectReference> + <ProjectReference Include="..\Tango.Scripting\Tango.Scripting.csproj"> + <Project>{401989e7-ae1e-4002-b0ee-9a9f63740b97}</Project> + <Name>Tango.Scripting</Name> + </ProjectReference> <ProjectReference Include="..\Tango.Settings\Tango.Settings.csproj"> <Project>{d8f1ad85-526a-4f50-b6dc-d437af63d8d8}</Project> <Name>Tango.Settings</Name> |
