예제 #1
0
 public static bool LiteralUsesAreEqual(LiteralUse a, LiteralUse b)
 {
     if (a == b)
     {
         return(true);
     }
     return(a.Kind == b.Kind &&
            TypeUsesAreEqual(a, b));
 }
예제 #2
0
 private static void TestEquality(LiteralUse expected, LiteralUse actual, string propertyName)
 {
     try {
         IsTrue(expected.Kind == actual.Kind, "Kind");
         IsTrue(expected.Text == actual.Text, "Value");
     } catch (DataAssertionException e) {
         e.Add(propertyName);
         throw e;
     }
     TestEquality((Expression)expected, (Expression)actual, propertyName);
 }