public static void AssertNode(this ITicResults results, TicNode generic, params int[] nodeIds) { foreach (var id in nodeIds) { Assert.AreEqual(generic.GetNonReference(), results.GetSyntaxNodeOrNull(id).GetNonReference()); } }
public static void AssertNode(this ITicResults results, ITypeState type, params int[] nodeIds) { foreach (var id in nodeIds) { Assert.AreEqual(type, results.GetSyntaxNodeOrNull(id).GetNonReference().State); } }
public static void AssertNode(this ITicResults results, ITypeState type, params int[] nodeIds) { foreach (var id in nodeIds) { var actual = results.GetSyntaxNodeOrNull(id).State; AssertNodeStateEqualToState(type, actual, id); } }
public ITicNodeState GetSyntaxNodeTypeOrNull(int id) => _bodyTypeSolving.GetSyntaxNodeOrNull(id)?.State;