5 types derived from ReadOnlySequenceFactory
Microsoft.AspNetCore.WebUtilities.Tests (5)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
27
internal sealed class ArrayTestSequenceFactory :
ReadOnlySequenceFactory
42
internal sealed class MemoryTestSequenceFactory :
ReadOnlySequenceFactory
57
internal sealed class OwnedMemoryTestSequenceFactory :
ReadOnlySequenceFactory
72
internal sealed class SingleSegmentTestSequenceFactory :
ReadOnlySequenceFactory
85
internal sealed class BytePerSegmentTestSequenceFactory :
ReadOnlySequenceFactory
23 references to ReadOnlySequenceFactory
Microsoft.AspNetCore.WebUtilities.Tests (23)
FormPipeReaderTests.cs (18)
217
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(bytes);
276
var readOnlySequence =
ReadOnlySequenceFactory
.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t="));
295
var readOnlySequence =
ReadOnlySequenceFactory
.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t="));
317
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t="));
336
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t="));
358
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=bo" + new string('a', 128)));
376
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("+++=+++&++++=++++&+="));
395
var readOnlySequence =
ReadOnlySequenceFactory
.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("++%2B=+++%2B&++++=++++&+="));
414
var readOnlySequence =
ReadOnlySequenceFactory
.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("\"%-.<>\\^_`{|}~=\"%-.<>\\^_`{|}~&\"%-.<>\\^_`{|}=wow"));
431
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("foo=bar&"), Encoding.UTF8.GetBytes("baz=boo"));
448
var readOnlySequence =
ReadOnlySequenceFactory
.SingleSegmentFactory.CreateWithContent(Encoding.UTF8.GetBytes("foo=bar&baz=boo&t="));
462
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("fo=bar&ba"), Encoding.UTF8.GetBytes("z=boo&t="));
476
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("foo=bar&baz=boo&t="));
490
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&t="));
504
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&asdfasdfasd="));
518
var readOnlySequence =
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("foo=ba&baz=bo"), Encoding.UTF8.GetBytes("o&t=asdfasdfasd"));
602
{
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("fo=bar&b"), Encoding.UTF8.GetBytes("a")) },
609
{
ReadOnlySequenceFactory
.CreateSegments(Encoding.UTF8.GetBytes("fo=bar&b"), Encoding.UTF8.GetBytes("=")) },
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
13
public static
ReadOnlySequenceFactory
ArrayFactory { get; } = new ArrayTestSequenceFactory();
14
public static
ReadOnlySequenceFactory
MemoryFactory { get; } = new MemoryTestSequenceFactory();
15
public static
ReadOnlySequenceFactory
OwnedMemoryFactory { get; } = new OwnedMemoryTestSequenceFactory();
16
public static
ReadOnlySequenceFactory
SingleSegmentFactory { get; } = new SingleSegmentTestSequenceFactory();
17
public static
ReadOnlySequenceFactory
SegmentPerByteFactory { get; } = new BytePerSegmentTestSequenceFactory();