67 references to Execute
InteractiveHost.UnitTests (67)
AbstractInteractiveHostTests.cs (1)
134return await Execute($"#r \"{reference}\"");
InteractiveHostCoreInitTests.cs (2)
27await Execute(@" 45await Execute($@"#r ""{scriptingAssemblyName}""");
InteractiveHostCoreTests.cs (2)
25await Execute(@" 41await Execute(@"1+1");
InteractiveHostDesktopTests.cs (62)
31await Execute(@" 45await Execute(@"System.Console.WriteLine(1);"); 46await Execute(@"System.Console.Error.WriteLine(2);"); 55await Execute(@"System.Console.WriteLine(3);"); 56await Execute(@"System.Console.Error.WriteLine(4);"); 69await Execute(@" 85await Execute(@"1+1"); 121var execution = await Execute(@"1+1"); 192var execution = await Execute(@"1+1"); 243await Execute("Goo(2)"); 247await Execute("new C().Goo(3)"); 251await Execute("new C().field"); 293Assert.True(await Execute(@"1+1")); 303Assert.False(await Execute("new System.Data.DataSet()")); 305Assert.True(await Execute("new System.Data.DataSet()")); 311Assert.False(await Execute("new System.Data.DataSet()")); 313Assert.True(await Execute("new System.Data.DataSet()")); 323await Execute(@"new System.Data.DataSet().GetType().Assembly.GetName().Version"); 331Assert.False(await Execute("new System.Data.DataSet()")); 333Assert.True(await Execute("new System.Data.DataSet()")); 374Assert.True(await Execute("new C()")); 381var result = await Execute("new C()"); 442Assert.True(await Execute("Program.Main()")); 470Assert.True(await Execute("Program.Main()")); 487await Execute("#r \"" + lib1.Path + "\""); 488await Execute("#r \"" + lib2.Path + "\""); 489await Execute("new C().M()"); 507await Execute($@" 519await Execute($@" 550await Execute($@" 554await Execute("new C1()"); 555await Execute("new C2()"); 585await Execute($@" 589await Execute("new C1()"); 590await Execute("new C2()"); 709await Execute(@" 771await Execute(@" 774await Execute(@" 777await Execute(@" 780await Execute(@" 783await Execute(@" 786await Execute(@" 789await Execute(@" 822await Execute("new Process()"); 862await Execute("nameof(Microsoft.Missing)"); 874await Execute(@" 897await Execute(@"using System; 899await Execute(@"await Task.Delay(1000).ContinueWith(t => 1)"); 900await Execute(@"await Task.Delay(500).ContinueWith(t => 2)"); 901await Execute(@"3"); 914await Execute(@" 944await Execute($@"#r ""{libFile.Path}"""); 945await Execute("C c;"); 946await Execute("c = new C()"); 957await Execute(@" 973await Execute(@"throw new System.Exception();"); 985await Execute(@"int i = 100;"); 986await Execute(@"int j = 20; throw new System.Exception(""Bang!""); int k = 3;"); 987await Execute(@"i + j + k"); 1047await Execute(@" 1060await Execute(@"System.Console.WriteLine(2)"); 1065await Execute(@"