public void Test_0440_QLDeviceGroup_RemoveDevice() { // Note: This only uses the initially chosen device. int deviceGroupId; QLError error = QuickLink2API.QLDeviceGroup_Create(out deviceGroupId); Assert.AreEqual(QLError.QL_ERROR_OK, error); Assert.Greater(deviceGroupId, 0); error = QuickLink2API.QLDeviceGroup_AddDevice(deviceGroupId, Test_SetUp.Helper.DeviceId); Assert.AreEqual(QLError.QL_ERROR_OK, error); int numDevices = 1; int[] deviceIds = new int[numDevices]; error = QuickLink2API.QLDeviceGroup_Enumerate(deviceGroupId, ref numDevices, deviceIds); Assert.AreEqual(QLError.QL_ERROR_OK, error); Assert.AreEqual(1, numDevices); Assert.AreEqual(Test_SetUp.Helper.DeviceId, deviceIds[0]); QLFrameData frameData = new QLFrameData(); error = QuickLink2API.QLDevice_GetFrame(Test_SetUp.Helper.DeviceId, 2000, ref frameData); Assert.AreEqual(QLError.QL_ERROR_OK, error); error = QuickLink2API.QLDeviceGroup_RemoveDevice(deviceGroupId, Test_SetUp.Helper.DeviceId); Assert.AreEqual(QLError.QL_ERROR_OK, error); error = QuickLink2API.QLDeviceGroup_Enumerate(deviceGroupId, ref numDevices, deviceIds); Assert.AreEqual(QLError.QL_ERROR_OK, error); Assert.AreEqual(0, numDevices); }