diff --git a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Fido2/MakeCredentialBlobTests.cs b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Fido2/MakeCredentialBlobTests.cs index 3ec796dc..059ee4b0 100644 --- a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Fido2/MakeCredentialBlobTests.cs +++ b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/Fido2/MakeCredentialBlobTests.cs @@ -25,7 +25,7 @@ public class MakeCredentialBlobTests [Fact] public void CredBlobExtension_Correct() { - IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevices()[0]; + IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevice(); IYubiKeyConnection connection = yubiKeyDevice.Connect(YubiKeyApplication.Fido2); var getInfoCmd = new GetInfoCommand(); diff --git a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/HasFidoFeatureTests.cs b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/HasFidoFeatureTests.cs index e78df759..5f847539 100644 --- a/Yubico.YubiKey/tests/integration/Yubico/YubiKey/HasFidoFeatureTests.cs +++ b/Yubico.YubiKey/tests/integration/Yubico/YubiKey/HasFidoFeatureTests.cs @@ -33,7 +33,7 @@ public void HasFeature_ApplicationOTP_Correct() [Fact] public void HasFeature_ApplicationU2F_Correct() { - IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevices().First(); + IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevice(); bool expectedResult = true; //Can this be removed? @@ -50,7 +50,7 @@ public void HasFeature_ApplicationU2F_Correct() [Fact] public void HasFeature_ApplicationFido2_Correct() { - IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevices().First(); + IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevice(); bool expectedResult = true; if (!yubiKeyDevice.IsSkySeries && yubiKeyDevice.FirmwareVersion.Major < 5) {