67 references to Execute
InteractiveHost.UnitTests (67)
AbstractInteractiveHostTests.cs (1)
137
return await
Execute
($"#r \"{reference}\"");
InteractiveHostCoreInitTests.cs (2)
28
await
Execute
(@"
46
await
Execute
($@"#r ""{scriptingAssemblyName}""");
InteractiveHostCoreTests.cs (2)
26
await
Execute
(@"
42
await
Execute
(@"1+1");
InteractiveHostDesktopTests.cs (62)
32
await
Execute
(@"
46
await
Execute
(@"System.Console.WriteLine(1);");
47
await
Execute
(@"System.Console.Error.WriteLine(2);");
56
await
Execute
(@"System.Console.WriteLine(3);");
57
await
Execute
(@"System.Console.Error.WriteLine(4);");
70
await
Execute
(@"
86
await
Execute
(@"1+1");
122
var execution = await
Execute
(@"1+1");
193
var execution = await
Execute
(@"1+1");
244
await
Execute
("Goo(2)");
248
await
Execute
("new C().Goo(3)");
252
await
Execute
("new C().field");
294
Assert.True(await
Execute
(@"1+1"));
304
Assert.False(await
Execute
("new System.Data.DataSet()"));
306
Assert.True(await
Execute
("new System.Data.DataSet()"));
312
Assert.False(await
Execute
("new System.Data.DataSet()"));
314
Assert.True(await
Execute
("new System.Data.DataSet()"));
324
await
Execute
(@"new System.Data.DataSet().GetType().Assembly.GetName().Version");
332
Assert.False(await
Execute
("new System.Data.DataSet()"));
334
Assert.True(await
Execute
("new System.Data.DataSet()"));
375
Assert.True(await
Execute
("new C()"));
382
var result = await
Execute
("new C()");
443
Assert.True(await
Execute
("Program.Main()"));
471
Assert.True(await
Execute
("Program.Main()"));
488
await
Execute
("#r \"" + lib1.Path + "\"");
489
await
Execute
("#r \"" + lib2.Path + "\"");
490
await
Execute
("new C().M()");
508
await
Execute
($@"
520
await
Execute
($@"
551
await
Execute
($@"
555
await
Execute
("new C1()");
556
await
Execute
("new C2()");
586
await
Execute
($@"
590
await
Execute
("new C1()");
591
await
Execute
("new C2()");
710
await
Execute
(@"
772
await
Execute
(@"
775
await
Execute
(@"
778
await
Execute
(@"
781
await
Execute
(@"
784
await
Execute
(@"
787
await
Execute
(@"
790
await
Execute
(@"
823
await
Execute
("new Process()");
863
await
Execute
("nameof(Microsoft.Missing)");
875
await
Execute
(@"
898
await
Execute
(@"using System;
900
await
Execute
(@"await Task.Delay(1000).ContinueWith(t => 1)");
901
await
Execute
(@"await Task.Delay(500).ContinueWith(t => 2)");
902
await
Execute
(@"3");
915
await
Execute
(@"
945
await
Execute
($@"#r ""{libFile.Path}""");
946
await
Execute
("C c;");
947
await
Execute
("c = new C()");
958
await
Execute
(@"
974
await
Execute
(@"throw new System.Exception();");
986
await
Execute
(@"int i = 100;");
987
await
Execute
(@"int j = 20; throw new System.Exception(""Bang!""); int k = 3;");
988
await
Execute
(@"i + j + k");
1048
await
Execute
(@"
1061
await
Execute
(@"System.Console.WriteLine(2)");
1066
await
Execute
(@"