15 instantiations of TestNode
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
Differencing\MatchTests.cs (15)
20var oldRoot = new TestNode(0, 1,
21x1 = new TestNode(1, 1));
23var newRoot = new TestNode(0, 1,
24x2 = new TestNode(1, 2));
33Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, [KeyValuePairUtil.Create(x1, x2), KeyValuePairUtil.Create(x1, new TestNode(0, 0))]));
41var oldRoot = new TestNode(0, 1,
42x1 = new TestNode(1, 1),
43y1 = new TestNode(1, 4));
45var newRoot = new TestNode(0, 1,
46x2 = new TestNode(1, 2),
47y2 = new TestNode(1, 3));
69var oldRoot = new TestNode(0, 1,
70x1 = new TestNode(0, 1));
72var newRoot = new TestNode(0, 1,
73x2 = new TestNode(0, 2));
37 references to TestNode
Microsoft.CodeAnalysis.Workspaces.UnitTests (37)
Differencing\MatchTests.cs (12)
18TestNode x1, x2;
20var oldRoot = new TestNode(0, 1,
23var newRoot = new TestNode(0, 1,
28Assert.True(m.TryGetNewNode(x1, out var n));
39TestNode x1, x2, y1, y2;
41var oldRoot = new TestNode(0, 1,
45var newRoot = new TestNode(0, 1,
56Assert.True(m.TryGetNewNode(x1, out var n));
67TestNode x1, x2;
69var oldRoot = new TestNode(0, 1,
72var newRoot = new TestNode(0, 1,
81Assert.True(m.TryGetNewNode(x1, out var n)); // matched