public TestCase() { Tween1 = new TweenSleep(new TimeSpan(200), () => Tween1FinishCallbacks++); Tween2 = new TweenSleep(new TimeSpan(100), () => Tween2FinishCallbacks++); ParallelTween = new TweenParallel(() => TweenParallelFinishCallbacks++); ParallelTween.Add(Tween1); ParallelTween.Add(Tween2); }
public void ShouldAddTween() { var tween = new TweenSleep(new TimeSpan(100)); var parallel = new TweenParallel(); parallel.Add(tween); Assert.Equal(1, parallel.TweenCount); Assert.False(parallel.IsFinished); Assert.Contains(tween, parallel.Tweens); }