Ejemplo n.º 1
0
 protected void AssertBody(IMethodDeclaration method, IKaVEList <IStatement> body)
 {
     if (!body.Equals(method.Body))
     {
         Console.WriteLine("AssertBody failed!");
         Console.WriteLine("\n-- expected body --\n");
         Console.WriteLine(body.ToString());
         Console.WriteLine("\n-- actual body --\n");
         Console.WriteLine(method.Body.ToString());
         Assert.Fail();
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(IndexAccessExpression other)
 {
     return(Reference.Equals(other.Reference) && Indices.Equals(other.Indices));
 }