10 references to Clear
Microsoft.CodeAnalysis.UnitTests (10)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (2)
32
protected override ModifyOperation ModifyEnumeratorThrows => base.ModifyEnumeratorAllowed & ~(ModifyOperation.Remove | ModifyOperation.
Clear
);
34
protected override ModifyOperation ModifyEnumeratorAllowed => ModifyOperation.Overwrite | ModifyOperation.Remove | ModifyOperation.
Clear
;
Collections\HashSet\SegmentedHashSet_IEnumerable_NonGeneric_Tests.cs (2)
41
if ((operations & ModifyOperation.
Clear
) == ModifyOperation.
Clear
)
Collections\List\ICollection.Generic.Tests.cs (2)
106
if (!AddRemoveClear_ThrowsNotSupported && (operations & ModifyOperation.
Clear
) == ModifyOperation.
Clear
)
Collections\List\IEnumerable.Generic.Tests.cs (1)
51
protected virtual ModifyOperation ModifyEnumeratorThrows => ModifyOperation.Add | ModifyOperation.Insert | ModifyOperation.Overwrite | ModifyOperation.Remove | ModifyOperation.
Clear
;
Collections\List\IEnumerable.NonGeneric.Tests.cs (1)
47
protected virtual ModifyOperation ModifyEnumeratorThrows => ModifyOperation.Add | ModifyOperation.Insert | ModifyOperation.Overwrite | ModifyOperation.Remove | ModifyOperation.
Clear
;
Collections\List\IList.NonGeneric.Tests.cs (2)
170
if ((operations & ModifyOperation.
Clear
) == ModifyOperation.
Clear
)