public void TestSuperSourceCascade() { var expectedCmd = new SuperSourceCascadeCommand(); var handler = CommandGenerator.EchoCommand(expectedCmd); AtemMockServerWrapper.Each(_output, _pool, handler, DeviceTestCases.SuperSourceCascade, helper => { IBMDSwitcher switcher = helper.SdkClient.SdkSwitcher; AtemState stateBefore = helper.Helper.BuildLibState(); for (int i = 0; i < 5; i++) { bool newValue = i % 2 == 0; stateBefore.Settings.SuperSourceCascade = newValue; expectedCmd.Cascade = newValue; helper.SendAndWaitForChange(stateBefore, () => { switcher.SetSuperSourceCascade(newValue ? 1 : 0); }); } }); }