示例#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();
     }
 }
示例#2
0
 protected bool Equals(IndexAccessExpression other)
 {
     return(Reference.Equals(other.Reference) && Indices.Equals(other.Indices));
 }