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