private void AssertChange(string name, ChangeType change) { EnumDetail r1 = ExtractEnum(Subjects.One, name); EnumDetail r2 = ExtractEnum(Subjects.Two, name); Align(r1, r2); Assert.AreEqual(change, r2.PerformCompare(r1)); }
public void Enum_Change_Value() { EnumDetail r1 = ExtractEnum(Subjects.One, "EnumValueChanges"); EnumDetail r2 = ExtractEnum(Subjects.Two, "EnumValueChanges"); Align(r1, r2); r2.PerformCompare(r1); Assert.AreEqual(ChangeType.DeclarationChangedBreaking, r2.Change); IEnumerator <ICanCompare> values = r2.FilterChildren <ICanCompare>().GetEnumerator(); values.MoveNext(); Assert.AreEqual(ChangeType.None, values.Current.Change); values.MoveNext(); Assert.AreEqual(ChangeType.ValueChangedBreaking, values.Current.Change); }