完成「Dodo」脚本的定义与服务关键逻辑的测试
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
using Deedy.Testing;
|
||||||
|
|
||||||
namespace Deedy
|
namespace Deedy
|
||||||
{
|
{
|
||||||
@@ -9,6 +10,25 @@ namespace Deedy
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class App : Application
|
public partial class App : Application
|
||||||
{
|
{
|
||||||
|
public App()
|
||||||
|
{
|
||||||
|
string script =
|
||||||
|
@"
|
||||||
|
VarP var1 111
|
||||||
|
VarP var2 222
|
||||||
|
Func Add var1 var2
|
||||||
|
LetP AddResult -1
|
||||||
|
math AddResult var1 var2 +
|
||||||
|
retu AddResult
|
||||||
|
EndF
|
||||||
|
|
||||||
|
Call Add var1 var2
|
||||||
|
PopV result
|
||||||
|
";
|
||||||
|
Todo todo = new Todo();
|
||||||
|
todo.Init(script);
|
||||||
|
todo.Redo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1102
DeedyDesigner/Deedy.Testing/Dodo.cs
Normal file
1102
DeedyDesigner/Deedy.Testing/Dodo.cs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user