📄 vsaregistertestcase.cs
字号:
using System;
using System.Collections;
using NUnit.Framework;
namespace DotNetTools.Workflow.Util.Vsa
{
public class VsaRegisterTestCase : TestCaseBase
{
public VsaRegisterTestCase()
{
}
[Test]
public void TestJs()
{
IDictionary args=new Hashtable();
args["script"]=String.Empty;
args["language"]="Microsoft.JScript.Vsa";
IRegister r=new VsaRegister();
Assert.IsTrue(r.RegisterVariable(null,null,args)==null);
args["script"]="return new Hashtable()";
r=new VsaRegister();
Assert.IsTrue(r.RegisterVariable(null,null,args) is IDictionary);
}
[Test]
public void TestVB()
{
IDictionary args=new Hashtable();
args["script"]=String.Empty;
IRegister r=new VsaRegister();
Assert.IsTrue(r.RegisterVariable(null,null,args)==null);
args["script"]="return new Hashtable()";
r=new VsaRegister();
Assert.IsTrue(r.RegisterVariable(null,null,args) is Hashtable);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -