-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConstants.cs
49 lines (40 loc) · 1.13 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
namespace DecompilationDiffer;
public static class Constants
{
public const string InitialCode = """
using System.Collections.Generic;
using System.Linq;
class C
{
private IEnumerable<int> _data = M(new [] {1, 2, 3});
static IEnumerable<int> M(IEnumerable<int> input)
{
return input.Select(x => x);
}
}
""";
public const string Version1Code = """
using System.Collections.Generic;
using System.Linq;
class C
{
private IEnumerable<int> _data = M([1, 2, 3]);
static IEnumerable<int> M(IEnumerable<int> input)
{
return input.Select(x => x);
}
}
""";
public const string Version2Code = """
using System.Collections.Generic;
using System.Linq;
class C
{
private IEnumerable<int> _data = M(1, 2, 3);
static IEnumerable<int> M(params IEnumerable<int> input)
{
return input.Select(x => x);
}
}
""";
}