public void GivenDeviceWithInvalidHdmiSwitchId_WhenGetAvailable_ThenAvailableIsFalse() { var device = new AtenVS0801H(_serviceClient, _settings.DeviceId, _invalidHdmiSwitchId); var available = device.GetAvailable(); Assert.IsFalse(available); }
public void GivenDeviceWithInvalidHdmiSwitchId_WhenSetInput_ThenSuccessIsFalse() { var device = new AtenVS0801H(_serviceClient, _settings.DeviceId, _invalidHdmiSwitchId); var success = device.SetInputPort(InputPort.Port1); Assert.IsFalse(success); }
public void GivenDeviceWithInvalidHdmiSwitchId_WhenGetState_ThenStateIsNull() { var device = new AtenVS0801H(_serviceClient, _settings.DeviceId, _invalidHdmiSwitchId); var state = device.GetState(); Assert.IsNull(state); }
public void GivenInvalidPartialId_WhenNewDevice_ThenDeviceIsNotAvailable() { using (var device = new AtenVS0801H("invalid")) { Assert.IsFalse(device.GetAvailable()); } }
public void Setup() { _serviceClient = ServiceClient.CreateFromConnectionString(_commandExecuterSettings.ConnectionString); _cd = new CommandDispatcher(_serviceClient, _commandExecuterSettings.DeviceId); _hdmiDevice0 = new AtenVS0801H(_serviceClient, _commandExecuterSettings.DeviceId, 0); _hdmiDevice1 = new AtenVS0801H(_serviceClient, _commandExecuterSettings.DeviceId, 1); _tvDevice = new SonySimpleIP(_serviceClient, _commandExecuterSettings.DeviceId); }
public void Setup() { _devices.Clear(); _serviceClient = ServiceClient.CreateFromConnectionString(_settings.ConnectionString); uint deviceCount = (uint)_settings.DeviceCount; for (uint i = 0; i < deviceCount; i++) { var device = new AtenVS0801H(_serviceClient, _settings.DeviceId, i); _devices.Add(device); } }
public void GivenNullPartialId_WhenNewDevice_ThenExceptionThrown() { using (var device = new AtenVS0801H(null)) { } }
public void GivenEmptyPartialId_WhenNewDevice_ThenExceptionThrown() { using (var device = new AtenVS0801H(string.Empty)) { } }