Пример #1
0
        public void StopZone_Works()
        {
            var programSetName = "StepperSet";

            var zlm      = new ZLM(false, false, false);
            var zlmrpc   = new ZLMRPC(zlm);
            var zoneName = "FadeCandyZone";

            zlm.AddFadeCandyZone(zoneName, PixelType.FadeCandyWS2812Pixel, 8, 1);
            zlm.CreateProgramSet(programSetName, "Stepper", zlm.Zones.Select(z => z.Name));
            Assert.That(zlm.Zones[zoneName].Running, Is.True);

            //act
            zlmrpc.StopZone(zoneName, false);

            //assert
            Assert.That(zlm.Zones[zoneName].Running, Is.False);

            zlmrpc.Dispose();
        }