Browse Source

Update dynamic tests

pull/1165/head
Siegfried Pammer 7 years ago
parent
commit
e933abb67f
  1. 38
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs
  2. 2821
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.il
  3. 2770
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.opt.il
  4. 2366
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.opt.roslyn.il
  5. 2419
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.roslyn.il

38
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs

@ -11,10 +11,48 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -11,10 +11,48 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
set;
}
public DynamicTests()
{
}
public DynamicTests(dynamic test)
{
}
public DynamicTests(DynamicTests test)
{
}
private static void InvokeConstructor()
{
DynamicTests dynamicTests = new DynamicTests();
dynamic val = new DynamicTests();
val.Test(new UnauthorizedAccessException());
dynamic val2 = new DynamicTests(val);
val2.Get(new DynamicTests((DynamicTests)val));
val2.Call(new DynamicTests((dynamic)dynamicTests));
}
private static dynamic InlineAssign(object a, out dynamic b)
{
return b = ((dynamic)a).Test;
}
private static dynamic SelfReference(dynamic d)
{
return d[d, d] = d;
}
private static dynamic LongArgumentListFunc(dynamic d)
{
// Func`13
return d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
}
private static void LongArgumentListAction(dynamic d)
{
// Action`13
d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
}
private static void DynamicThrow()

2821
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.il

File diff suppressed because it is too large Load Diff

2770
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.opt.il

File diff suppressed because it is too large Load Diff

2366
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.opt.roslyn.il

File diff suppressed because it is too large Load Diff

2419
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.roslyn.il

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save