public void TestReset()
        {
            var target = new FairlightMixerMasterEqualizerResetCommand
            {
                Mask = FairlightMixerMasterEqualizerResetCommand.MaskFlags.Equalizer
            };
            var handler = CommandGenerator.MatchCommand(target, true);

            AtemMockServerWrapper.Each(_output, _pool, handler, DeviceTestCases.FairlightMain, helper =>
            {
                IBMDSwitcherFairlightAudioEqualizer eq = GetEqualizer(helper);

                uint timeBefore = helper.Server.CurrentTime;

                helper.SendAndWaitForChange(null, () => { eq.Reset(); });

                // It should have sent a response, but we dont expect any comparable data
                Assert.NotEqual(timeBefore, helper.Server.CurrentTime);
            });
        }
Beispiel #2
0
        public void TestReset()
        {
            var target = new FairlightMixerMasterEqualizerResetCommand
            {
                Mask = FairlightMixerMasterEqualizerResetCommand.MaskFlags.Band
            };
            var handler = CommandGenerator.MatchCommand(target);

            AtemMockServerWrapper.Each(_output, _pool, handler, DeviceTestCases.FairlightMain, helper =>
            {
                ForSampleOfBands(helper, (band, index) =>
                {
                    uint timeBefore = helper.Server.CurrentTime;

                    target.Band = index;

                    helper.SendAndWaitForChange(null, () => { band.Reset(); });

                    // It should have sent a response, but we dont expect any comparable data
                    Assert.NotEqual(timeBefore, helper.Server.CurrentTime);
                });
            });
        }