public void TestCurrentExternalPortType()
        {
            bool tested  = false;
            var  handler = CommandGenerator.CreateAutoCommandHandler <InputPropertiesSetCommand, InputPropertiesGetCommand>("ExternalPortType");

            AtemMockServerWrapper.Each(_output, _pool, handler, DeviceTestCases.All, helper =>
            {
                AtemState tmpState          = helper.Helper.BuildLibState();
                List <VideoSource> inputIds = tmpState.Settings.Inputs.Keys.Where(i =>
                                                                                  tmpState.Settings.Inputs[i].Properties.AvailableExternalPortTypes.Count > 1).ToList();

                foreach (VideoSource id in Randomiser.SelectionOfGroup(inputIds))
                {
                    AtemState stateBefore = helper.Helper.BuildLibState();
                    InputState inputState = stateBefore.Settings.Inputs[id];

                    IBMDSwitcherInput input = GetInput(helper, id);

                    List <VideoPortType> targets = Randomiser.SelectionOfGroup(inputState.Properties.AvailableExternalPortTypes.ToList())
                                                   .ToList();

                    tested = true;

                    foreach (VideoPortType value in targets)
                    {
                        _BMDSwitcherExternalPortType value2           = AtemEnumMaps.VideoPortTypeMap[value];
                        inputState.Properties.CurrentExternalPortType = value;

                        helper.SendAndWaitForChange(stateBefore, () =>
                        {
                            input.SetCurrentExternalPortType(value2);
                        });
                    }
                }
            });
            Assert.True(tested);
        }
示例#2
0
 void SetCurrentExternalPortType(_BMDSwitcherExternalPortType value);
示例#3
0
 void GetCurrentExternalPortType(out _BMDSwitcherExternalPortType value);
示例#4
0
 void GetAvailableExternalPortTypes(out _BMDSwitcherExternalPortType types);