@@ -944,7 +944,7 @@ public void BindAlreadyInitializedArray()
944
944
Assert . Equal ( "valx" , array [ 6 ] ) ;
945
945
}
946
946
947
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
947
+ [ Fact ]
948
948
public void ArrayInNestedOptionBinding ( )
949
949
{
950
950
var input = new Dictionary < string , string >
@@ -973,7 +973,7 @@ public void ArrayInNestedOptionBinding()
973
973
Assert . Equal ( 12 , options . ObjectArray [ 1 ] . ArrayInNestedOption [ 2 ] ) ;
974
974
}
975
975
976
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
976
+ [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ] // Ensure exception messages are in sync
977
977
public void UnsupportedMultidimensionalArrays ( )
978
978
{
979
979
var input = new Dictionary < string , string >
@@ -1209,7 +1209,7 @@ public void CanBindInitializedIReadOnlyDictionaryAndDoesNotModifyTheOriginal()
1209
1209
Assert . Equal ( "val_2" , InitializedCollectionsOptions . ExistingDictionary [ "existing_key_2" ] ) ;
1210
1210
}
1211
1211
1212
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1212
+ [ Fact ]
1213
1213
public void CanBindUninitializedICollection ( )
1214
1214
{
1215
1215
var input = new Dictionary < string , string >
@@ -1275,7 +1275,7 @@ public void CanBindUninitializedIList()
1275
1275
Assert . Equal ( "ExtraItem" , options . IList [ 4 ] ) ;
1276
1276
}
1277
1277
1278
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1278
+ [ Fact ]
1279
1279
public void CanBindUninitializedIReadOnlyCollection ( )
1280
1280
{
1281
1281
var input = new Dictionary < string , string >
@@ -1303,7 +1303,7 @@ public void CanBindUninitializedIReadOnlyCollection()
1303
1303
Assert . Equal ( "valx" , array [ 3 ] ) ;
1304
1304
}
1305
1305
1306
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1306
+ [ Fact ]
1307
1307
public void CanBindUninitializedIReadOnlyList ( )
1308
1308
{
1309
1309
var input = new Dictionary < string , string >
@@ -1331,7 +1331,7 @@ public void CanBindUninitializedIReadOnlyList()
1331
1331
Assert . Equal ( "valx" , array [ 3 ] ) ;
1332
1332
}
1333
1333
1334
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1334
+ [ Fact ]
1335
1335
public void CanBindUninitializedIDictionary ( )
1336
1336
{
1337
1337
var input = new Dictionary < string , string >
@@ -1382,7 +1382,7 @@ public void CanBindUninitializedIReadOnlyDictionary()
1382
1382
/// <summary>
1383
1383
/// Replicates scenario from https://github.com/dotnet/runtime/issues/65710
1384
1384
/// </summary>
1385
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1385
+ [ Fact ]
1386
1386
public void CanBindWithInterdependentProperties ( )
1387
1387
{
1388
1388
var input = new Dictionary < string , string >
@@ -1444,7 +1444,7 @@ public void CanBindNonInstantiatedIEnumerableWithItems()
1444
1444
Assert . Equal ( "Yo2" , options . NonInstantiatedIEnumerable . ElementAt ( 1 ) ) ;
1445
1445
}
1446
1446
1447
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1447
+ [ Fact ]
1448
1448
public void CanBindNonInstantiatedISet ( )
1449
1449
{
1450
1450
var dic = new Dictionary < string , string >
@@ -1465,7 +1465,7 @@ public void CanBindNonInstantiatedISet()
1465
1465
Assert . Equal ( "Yo2" , options . NonInstantiatedISet . ElementAt ( 1 ) ) ;
1466
1466
}
1467
1467
1468
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1468
+ [ Fact ]
1469
1469
public void CanBindISetNoSetter ( )
1470
1470
{
1471
1471
var dic = new Dictionary < string , string >
@@ -1507,7 +1507,7 @@ public void CanBindInstantiatedIReadOnlySet()
1507
1507
Assert . Equal ( "Yo2" , options . InstantiatedIReadOnlySet . ElementAt ( 1 ) ) ;
1508
1508
}
1509
1509
1510
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1510
+ [ Fact ]
1511
1511
public void CanBindInstantiatedIReadOnlyWithSomeValues ( )
1512
1512
{
1513
1513
var dic = new Dictionary < string , string >
@@ -1714,7 +1714,7 @@ public void CanBindNonInstantiatedReadOnlyDictionary()
1714
1714
Assert . Equal ( 4 , options . NonInstantiatedReadOnlyDictionary [ "item4" ] ) ;
1715
1715
}
1716
1716
1717
- [ ConditionalFact ( typeof ( TestHelpers ) , nameof ( TestHelpers . NotSourceGenMode ) ) ]
1717
+ [ Fact ]
1718
1718
public void CanBindNonInstantiatedDictionaryOfISet ( )
1719
1719
{
1720
1720
var dic = new Dictionary < string , string >
0 commit comments