Browse Source

Fix failing initializer tests.

pull/1612/head
Siegfried Pammer 6 years ago
parent
commit
14c76d1ba6
  1. 16
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/InitializerTests.cs

16
ICSharpCode.Decompiler.Tests/TestCases/Pretty/InitializerTests.cs

@ -1678,13 +1678,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.InitializerTests
}); });
} }
private void NestedListWithIndexInitializer(MyEnum myEnum) private List<List<int>> NestedListWithIndexInitializer(MyEnum myEnum)
{ {
#if !OPT return new List<List<int>> {
List<List<int>> list = new List<List<int>> {
#else
List<List<int>> obj = new List<List<int>> {
#endif
[0] = { [0] = {
1, 1,
2, 2,
@ -1717,13 +1713,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.InitializerTests
}); });
} }
public static void Issue1390(IEnumerable<string> tokens, bool alwaysAllowAdministrators, char wireDelimiter) public static List<KeyValuePair<string, string>> Issue1390(IEnumerable<string> tokens, bool alwaysAllowAdministrators, char wireDelimiter)
{ {
#if OPT return new List<KeyValuePair<string, string>> {
List<KeyValuePair<string, string>> obj = new List<KeyValuePair<string, string>> {
#else
List<KeyValuePair<string, string>> list = new List<KeyValuePair<string, string>> {
#endif
{ {
"tokens", "tokens",
string.Join(wireDelimiter.ToString(), tokens), string.Join(wireDelimiter.ToString(), tokens),

Loading…
Cancel
Save