public async void TestAnimationRandomCreateFrames() { Bootsrapper.DebugMode = false; var tests = new ChromaInstanceTests(); var instance = await tests.Instance_ReturnValidInstance(); var testAnimation = new RandomAnimation(instance); testAnimation.AnimationState += (devices, frame, result) => { Console.WriteLine($"Devices: {string.Join(",", devices)}, Frame: {frame} of {testAnimation.Frames.Count}, Effects: {string.Join(",", devices.Select(x => x.EffectId))} Result: {string.Join(",", result)}"); }; testAnimation.CreateFrames(); await testAnimation.Play(false); }
public async void TestAnimationCreateFrames() { //Set DebugMode to debug with Fiddler //Bootstrapper.DebugMode = true; var tests = new ChromaInstanceTests(); var instance = await tests.Instance_ReturnValidInstance(); var testAnimation = new TestAnimation(instance); testAnimation.AnimationState += (devices, frame, result) => { Console.WriteLine($"Devices: {string.Join(",", devices)}, Frame: {frame} of {testAnimation.Frames.Count}, Effects: {string.Join(",", devices.Select(x=>x.EffectId))} Result: {string.Join(",", result)}"); }; testAnimation.CreateFrames(); var playTask = testAnimation.Play(); await Task.Delay(20000); await testAnimation.Stop(); }