public void UseGlobalObjTest() { var demo = new RoslynDemo(); var result = demo.UseGlobalObj(); Assert.IsTrue(result); }
public async Task ScriptTestExpression() { var demo = new RoslynDemo(); var result = await demo.GetExpressValue(); Assert.AreEqual(13, result); }
public void ScriptTestMultiLine() { var demo = new RoslynDemo(); var result = demo.ExceuteMultiLine(); Assert.AreEqual(3, result); }
public void ScriptTest() { Task.Run(async() => { var demo = new RoslynDemo(); await demo.HelloWorld(); }).GetAwaiter().GetResult(); }
public async Task ScriptTestAsync() { var demo = new RoslynDemo(); await demo.HelloWorld(); }