public void DestroyAll_Animations_Resumed() { var c1 = Substitute.For <IAnimationPipelineController>(); var c2 = Substitute.For <IAnimationPipelineController>(); AnimationPipelineController.AddController(c1); AnimationPipelineController.AddController(c2); AnimationPipelineController.DestroyAll(); c1.Received().Destroy(); c2.Received().Destroy(); }
public void PauseAll_Animations_Paused() { var c1 = Substitute.For <IAnimationPipelineController> (); var c2 = Substitute.For <IAnimationPipelineController>(); AnimationPipelineController.AddController(c1); AnimationPipelineController.AddController(c2); AnimationPipelineController.PauseAll(); c1.Received().Pause(); c2.Received().Pause(); }