Beispiel #1
0
 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());
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 public ITicNodeState GetSyntaxNodeTypeOrNull(int id)
 => _bodyTypeSolving.GetSyntaxNodeOrNull(id)?.State;