public void IMMDevice_GetState() { var devices = TestUtilities.CreateIMMDeviceCollection(); foreach (var d in devices) { UInt32 deviceState; var result = d.GetState(out deviceState); AssertCoreAudio.IsHResultOk(result); AssertCoreAudio.IsDeviceStateValid(deviceState); } }