15 references to Create
Microsoft.CodeAnalysis.UnitTests (15)
Collections\ImmutableListTestBase.cs (1)
83
var list = ImmutableSegmentedList.
Create
(1, 2);
Collections\ImmutableSegmentedListTest.cs (13)
299
list = list.InsertRange(0, ImmutableSegmentedList.
Create
(1, 104, 105));
300
list = list.InsertRange(1, ImmutableSegmentedList.
Create
(2, 3));
332
var collection = ImmutableSegmentedList.
Create
(1, 2, 3);
585
list = ImmutableSegmentedList.
Create
("a", "b");
620
var list = ImmutableSegmentedList.
Create
(1, 2, 3);
632
var list = ImmutableSegmentedList.
Create
(1, 2, 3);
641
var list = ImmutableSegmentedList.
Create
(1, 2, 3);
656
var listWithDuplicates = ImmutableSegmentedList.
Create
(1, 2, 2, 3);
660
Assert.Throws<ArgumentNullException>("items", () => System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.
Create
(1, 2, 3), null!));
661
Assert.Equal(new[] { 1, 3 }, System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.
Create
(1, 2, 3), new[] { 2 }));
717
var populatedList = ImmutableSegmentedList.
Create
(3, 2, 1);
773
ImmutableSegmentedList<double> list = ImmutableSegmentedList.
Create
<double>(1, 2, 3);
776
object? rootNode = DebuggerAttributes.GetFieldValue(ImmutableSegmentedList.
Create
<string>("1", "2", "3"), "_root")!;
Collections\SegmentedCollectionsMarshalTests.cs (1)
506
ImmutableSegmentedList<T> immutableList = ImmutableSegmentedList.
Create
(new T[17]);