check point
This commit is contained in:
32
VisionBuilder.UI.Recipes.Scripted.Tests/BasicSyntax.cs
Normal file
32
VisionBuilder.UI.Recipes.Scripted.Tests/BasicSyntax.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace VisionBuilder.UI.Recipes.Scripted.Tests
|
||||
{
|
||||
public class Tests
|
||||
{
|
||||
|
||||
public void TestAddFunction(int a, int b, out int c)
|
||||
{
|
||||
c = a + b;
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Test1()
|
||||
{
|
||||
// setup
|
||||
// todo: register function
|
||||
|
||||
string script = @"
|
||||
test_add_function(1,2,c)
|
||||
";
|
||||
|
||||
int c = 0;
|
||||
// todo: get value of c from engine
|
||||
|
||||
Assert.Pass();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user