@@ -89,22 +89,21 @@ public static IYubiKeyDevice SelectByStandardTestDevice(
89
89
StandardTestDevice . Fw4Fips => SelectDevice ( 4 , isFipsSeries : true ) ,
90
90
StandardTestDevice . Fw5 => SelectDevice ( 5 ) ,
91
91
StandardTestDevice . Fw5Fips => SelectDevice ( 5 , isFipsSeries : true ) ,
92
- StandardTestDevice . Fw5Bio => SelectDevice ( 5 , formFactor : FormFactor . UsbABiometricKeychain ) ,
92
+ StandardTestDevice . Fw5Bio => SelectDevice ( 5 , [ FormFactor . UsbCBiometricKeychain , FormFactor . UsbABiometricKeychain ] ) ,
93
93
_ => throw new ArgumentException ( "Invalid test device value." , nameof ( testDeviceType ) ) ,
94
94
} ;
95
95
96
96
IYubiKeyDevice SelectDevice (
97
97
int majorVersion ,
98
- FormFactor ? formFactor = null ,
98
+ IEnumerable < FormFactor > ? formFactors = null ,
99
99
bool isFipsSeries = false )
100
100
{
101
101
IYubiKeyDevice device = null ! ;
102
102
try
103
103
{
104
- bool MatchingDeviceSelector (
105
- IYubiKeyDevice d ) =>
104
+ bool MatchingDeviceSelector ( IYubiKeyDevice d ) =>
106
105
d . FirmwareVersion . Major == majorVersion &&
107
- ( formFactor is null || d . FormFactor == formFactor ) &&
106
+ ( formFactors is null || formFactors . Contains ( d . FormFactor ) ) &&
108
107
d . IsFipsSeries == isFipsSeries ;
109
108
110
109
device = devicesVersionFiltered . First ( MatchingDeviceSelector ) ;
0 commit comments