blob: e574e304ecbf0c6ffa943e42cbcc647d3fa257d1 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
}
}
}
|