Searched refs:segmentEnumerator (Results 1 – 2 of 2) sorted by relevance
103 var segmentEnumerator = sequence.GetEnumerator(); in PayloadAsReadOnlySequence_MultiSegmentPayload()105 Assert.IsTrue(segmentEnumerator.MoveNext()); in PayloadAsReadOnlySequence_MultiSegmentPayload()106 CollectionAssert.AreEqual(origBuffer1, segmentEnumerator.Current.ToArray()); in PayloadAsReadOnlySequence_MultiSegmentPayload()108 Assert.IsTrue(segmentEnumerator.MoveNext()); in PayloadAsReadOnlySequence_MultiSegmentPayload()109 CollectionAssert.AreEqual(origBuffer2, segmentEnumerator.Current.ToArray()); in PayloadAsReadOnlySequence_MultiSegmentPayload()111 Assert.IsTrue(segmentEnumerator.MoveNext()); in PayloadAsReadOnlySequence_MultiSegmentPayload()112 CollectionAssert.AreEqual(origBuffer3, segmentEnumerator.Current.ToArray()); in PayloadAsReadOnlySequence_MultiSegmentPayload()114 Assert.IsFalse(segmentEnumerator.MoveNext()); in PayloadAsReadOnlySequence_MultiSegmentPayload()
75 readonly IEnumerator<GCHandle> segmentEnumerator; field in Grpc.Core.Internal.Tests.FakeBufferReaderManager.FakeBufferReader81 this.segmentEnumerator = bufferSegments?.GetEnumerator(); in FakeBufferReader()89 if (!segmentEnumerator.MoveNext()) in TryGetNextSlice()95 var segment = segmentEnumerator.Current; in TryGetNextSlice()