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)
35
await
Execute
(@"
51
await
Execute
(@"1+1");
InteractiveHostDesktopTests.cs (62)
33
await
Execute
(@"
47
await
Execute
(@"System.Console.WriteLine(1);");
48
await
Execute
(@"System.Console.Error.WriteLine(2);");
57
await
Execute
(@"System.Console.WriteLine(3);");
58
await
Execute
(@"System.Console.Error.WriteLine(4);");
71
await
Execute
(@"
87
await
Execute
(@"1+1");
123
var execution = await
Execute
(@"1+1");
194
var execution = await
Execute
(@"1+1");
245
await
Execute
("Goo(2)");
249
await
Execute
("new C().Goo(3)");
253
await
Execute
("new C().field");
295
Assert.True(await
Execute
(@"1+1"));
305
Assert.False(await
Execute
("new System.Data.DataSet()"));
307
Assert.True(await
Execute
("new System.Data.DataSet()"));
313
Assert.False(await
Execute
("new System.Data.DataSet()"));
315
Assert.True(await
Execute
("new System.Data.DataSet()"));
325
await
Execute
(@"new System.Data.DataSet().GetType().Assembly.GetName().Version");
333
Assert.False(await
Execute
("new System.Data.DataSet()"));
335
Assert.True(await
Execute
("new System.Data.DataSet()"));
376
Assert.True(await
Execute
("new C()"));
383
var result = await
Execute
("new C()");
444
Assert.True(await
Execute
("Program.Main()"));
472
Assert.True(await
Execute
("Program.Main()"));
489
await
Execute
("#r \"" + lib1.Path + "\"");
490
await
Execute
("#r \"" + lib2.Path + "\"");
491
await
Execute
("new C().M()");
509
await
Execute
($@"
521
await
Execute
($@"
552
await
Execute
($@"
556
await
Execute
("new C1()");
557
await
Execute
("new C2()");
587
await
Execute
($@"
591
await
Execute
("new C1()");
592
await
Execute
("new C2()");
711
await
Execute
(@"
773
await
Execute
(@"
776
await
Execute
(@"
779
await
Execute
(@"
782
await
Execute
(@"
785
await
Execute
(@"
788
await
Execute
(@"
791
await
Execute
(@"
824
await
Execute
("new Process()");
864
await
Execute
("nameof(Microsoft.Missing)");
876
await
Execute
(@"
899
await
Execute
(@"using System;
901
await
Execute
(@"await Task.Delay(1000).ContinueWith(t => 1)");
902
await
Execute
(@"await Task.Delay(500).ContinueWith(t => 2)");
903
await
Execute
(@"3");
916
await
Execute
(@"
946
await
Execute
($@"#r ""{libFile.Path}""");
947
await
Execute
("C c;");
948
await
Execute
("c = new C()");
959
await
Execute
(@"
975
await
Execute
(@"throw new System.Exception();");
987
await
Execute
(@"int i = 100;");
988
await
Execute
(@"int j = 20; throw new System.Exception(""Bang!""); int k = 3;");
989
await
Execute
(@"i + j + k");
1026
await
Execute
(@"
1039
await
Execute
(@"System.Console.WriteLine(2)");
1044
await
Execute
(@"