61 references to ModifyOperation
Microsoft.CodeAnalysis.UnitTests (61)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (7)
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 (8)
32
protected override
ModifyOperation
ModifyEnumeratorThrows => base.ModifyEnumeratorAllowed & ~
ModifyOperation
.Remove;
34
protected override
ModifyOperation
ModifyEnumeratorAllowed =>
ModifyOperation
.Overwrite |
ModifyOperation
.Remove;
39
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations)
41
if ((operations &
ModifyOperation
.Clear) ==
ModifyOperation
.Clear)
Collections\List\ICollection.Generic.Tests.cs (7)
82
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations)
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)
Collections\List\ICollection.NonGeneric.Tests.cs (1)
110
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations) => new List<ModifyEnumerable>();
Collections\List\IEnumerable.Generic.Tests.cs (9)
49
protected abstract IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations);
51
protected virtual
ModifyOperation
ModifyEnumeratorThrows =>
ModifyOperation
.Add |
ModifyOperation
.Insert |
ModifyOperation
.Overwrite |
ModifyOperation
.Remove |
ModifyOperation
.Clear;
53
protected virtual
ModifyOperation
ModifyEnumeratorAllowed =>
ModifyOperation
.None;
Collections\List\IEnumerable.NonGeneric.Tests.cs (9)
45
protected abstract IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations);
47
protected virtual
ModifyOperation
ModifyEnumeratorThrows =>
ModifyOperation
.Add |
ModifyOperation
.Insert |
ModifyOperation
.Overwrite |
ModifyOperation
.Remove |
ModifyOperation
.Clear;
49
protected virtual
ModifyOperation
ModifyEnumeratorAllowed =>
ModifyOperation
.None;
Collections\List\IList.Generic.Tests.cs (7)
48
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations)
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)
Collections\List\IList.NonGeneric.Tests.cs (11)
106
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations)
108
if ((operations &
ModifyOperation
.Add) ==
ModifyOperation
.Add)
121
if ((operations &
ModifyOperation
.Insert) ==
ModifyOperation
.Insert)
134
if ((operations &
ModifyOperation
.Remove) ==
ModifyOperation
.Remove)
157
if ((operations &
ModifyOperation
.Overwrite) ==
ModifyOperation
.Overwrite)
170
if ((operations &
ModifyOperation
.Clear) ==
ModifyOperation
.Clear)
Collections\List\SegmentedList.Generic.cs (2)
62
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations) => new SegmentedList<ModifyEnumerable>();
87
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(
ModifyOperation
operations) => new SegmentedList<ModifyEnumerable>();