public static bool LiteralUsesAreEqual(LiteralUse a, LiteralUse b) { if (a == b) { return(true); } return(a.Kind == b.Kind && TypeUsesAreEqual(a, b)); }
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); }