public static AnimationEventsTable SampleAnimationEventsTable() => new AnimationEventsTable { Entries = new List <AnimationEvent> { AnimationEventTests.SampleAnimationEvent(), AnimationEventTests.SampleAnimationEvent().Also(it => it.Id += 1), AnimationEventTests.SampleAnimationEvent().Also(it => it.Id += 2) } };
public static IComparisionTestCase <AnimationEventsTable>[] NotEqualObjectsTestCases() => new IComparisionTestCase <AnimationEventsTable>[] { ComparisionTestCase.CompareNotNullObjectAgainstNull(SampleAnimationEventsTable()), ComparisionTestCase.CompareTwoNotEqualObjects( supplier: SampleAnimationEventsTable, updater: animationEventsTable => animationEventsTable.Entries.Clear() ), ComparisionTestCase.CompareTwoNotEqualObjects( supplier: SampleAnimationEventsTable, updater: animationEventsTable => animationEventsTable.Entries.Add(AnimationEventTests.SampleAnimationEvent()) ), ComparisionTestCase.CompareTwoNotEqualObjects( supplier: SampleAnimationEventsTable, updater: animationEventsTable => animationEventsTable.Entries.RemoveAt(0) ), ComparisionTestCase.CompareTwoNotEqualObjects( supplier: SampleAnimationEventsTable, updater: animationEventsTable => animationEventsTable.Entries = null ) };