2 overrides of IsReadOnly
Microsoft.CodeAnalysis.UnitTests (2)
Collections\List\SegmentedList.Generic.cs (2)
50
protected override bool
IsReadOnly
=> true;
75
protected override bool
IsReadOnly
=> true;
70 references to IsReadOnly
Microsoft.CodeAnalysis.UnitTests (70)
Collections\HashSet\ISet_Generic_Tests`1.cs (16)
87
if (!
IsReadOnly
)
106
if (!
IsReadOnly
)
321
if (!
IsReadOnly
)
345
if (!
IsReadOnly
)
357
if (!
IsReadOnly
)
423
if (!
IsReadOnly
)
435
if (!
IsReadOnly
)
451
if (!
IsReadOnly
)
462
if (!
IsReadOnly
)
521
if (!
IsReadOnly
)
532
if (!
IsReadOnly
)
546
if (!
IsReadOnly
)
557
if (!
IsReadOnly
)
616
if (!
IsReadOnly
)
627
if (!
IsReadOnly
)
643
if (!
IsReadOnly
)
Collections\List\ICollection.Generic.Tests.cs (25)
50
protected virtual bool IsReadOnly_ValidityValue =>
IsReadOnly
;
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)
464
if (!DefaultValueAllowed && !
IsReadOnly
)
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 (29)
145
if (!
IsReadOnly
)
159
if (!
IsReadOnly
)
173
if (
IsReadOnly
&& count > 0)
186
if (count > 0 && !
IsReadOnly
)
199
if (count > 0 && !
IsReadOnly
)
219
if (count > 0 && !
IsReadOnly
)
233
if (count > 0 && !
IsReadOnly
&& DefaultValueAllowed)
254
if (count >= 2 && !
IsReadOnly
&& DuplicateValuesAllowed)
269
if (count > 0 && !
IsReadOnly
)
293
if (
IsReadOnly
)
316
if (
IsReadOnly
)
340
if (count > 0 && !
IsReadOnly
&& DuplicateValuesAllowed)
367
if (!
IsReadOnly
)
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)
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)