1 override of DefaultValueAllowed
Microsoft.CodeAnalysis.UnitTests (1)
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (1)
37
protected override bool
DefaultValueAllowed
=> true;
14 references to DefaultValueAllowed
Microsoft.CodeAnalysis.UnitTests (14)
Collections\List\ICollection.Generic.Tests.cs (7)
153
if (
DefaultValueAllowed
&& !IsReadOnly && !AddRemoveClear_ThrowsNotSupported)
418
if (
DefaultValueAllowed
&& default(T) is null) // it's true only for reference types and for Nullable<T>
428
if (
DefaultValueAllowed
&& !IsReadOnly && !AddRemoveClear_ThrowsNotSupported)
464
if (!
DefaultValueAllowed
&& !IsReadOnly)
568
if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported &&
DefaultValueAllowed
&& !Enumerable.Contains(InvalidValues, default(T)))
603
if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported &&
DefaultValueAllowed
&& !Enumerable.Contains(InvalidValues, default(T)))
686
if (!
DefaultValueAllowed
&& !IsReadOnly && !AddRemoveClear_ThrowsNotSupported)
Collections\List\IList.Generic.Tests.cs (7)
202
if (
DefaultValueAllowed
)
233
if (count > 0 && !IsReadOnly &&
DefaultValueAllowed
)
237
if (
DefaultValueAllowed
)
287
if (
DefaultValueAllowed
)
310
if (count > 0 &&
DefaultValueAllowed
)
456
if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported &&
DefaultValueAllowed
)
485
if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported &&
DefaultValueAllowed
)