46 references to AddRemoveClear_ThrowsNotSupported
Microsoft.CodeAnalysis.UnitTests (46)
Collections\List\ICollection.Generic.Tests.cs (26)
84
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Add) == ModifyOperation.Add)
93
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Remove) == ModifyOperation.Remove)
106
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Clear) == ModifyOperation.Clear)
153
if (DefaultValueAllowed && !IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
165
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
182
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
199
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
214
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DuplicateValuesAllowed)
228
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
241
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
266
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
281
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
293
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
315
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
332
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
353
if (typeof(T).IsValueType || IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
428
if (DefaultValueAllowed && !IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
440
if (DuplicateValuesAllowed && !IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
557
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
568
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DefaultValueAllowed && !Enumerable.Contains(InvalidValues, default(T)))
587
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
603
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DefaultValueAllowed && !Enumerable.Contains(InvalidValues, default(T)))
622
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
641
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DuplicateValuesAllowed)
659
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
686
if (!DefaultValueAllowed && !IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
Collections\List\IList.Generic.Tests.cs (20)
53
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Insert) == ModifyOperation.Insert)
66
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Overwrite) == ModifyOperation.Overwrite)
79
if (!
AddRemoveClear_ThrowsNotSupported
&& (operations & ModifyOperation.Remove) == ModifyOperation.Remove)
381
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
402
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
416
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
430
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
442
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
456
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DefaultValueAllowed)
470
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
485
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DefaultValueAllowed)
500
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
&& DuplicateValuesAllowed)
504
if (
AddRemoveClear_ThrowsNotSupported
)
523
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
541
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
555
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
569
if (IsReadOnly ||
AddRemoveClear_ThrowsNotSupported
)
581
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
597
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)
617
if (!IsReadOnly && !
AddRemoveClear_ThrowsNotSupported
)