31 references to StringToStream
Microsoft.Build.Tasks.UnitTests (31)
CreateCSharpManifestResourceName_Tests.cs (12)
41
binaryStream: StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }"),
63
MemoryStream sourcesStream = (MemoryStream)StreamHelpers.
StringToStream
("namespace d?a { class Class {} }");
107
MemoryStream sourcesStream = (MemoryStream)StreamHelpers.
StringToStream
("namespace d??a { class Class {} }");
143
binaryStream: StreamHelpers.
StringToStream
("namespace Namespace { class Class {} }"),
163
binaryStream: StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }"),
183
binaryStream: StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }"),
204
binaryStream: StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }"),
224
binaryStream: StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }"),
696
binaryStream: StreamHelpers.
StringToStream
("namespace ClassLibrary1 { class MyForm {} }"),
723
binaryStream: StreamHelpers.
StringToStream
(""),
748
binaryStream: StreamHelpers.
StringToStream
(
781
return StreamHelpers.
StringToStream
("namespace MyStuff.Namespace { class Class {} }");
StreamMappedString_Tests.cs (19)
23
MemoryStream sourcesStream = (MemoryStream)StreamHelpers.
StringToStream
("namespace d?a { class Class {} }");
38
Stream stream = StreamHelpers.
StringToStream
("A" + new String('b', StreamMappedString.DefaultPageSize * 4));
51
Stream stream = StreamHelpers.
StringToStream
("A" + new String('b', StreamMappedString.DefaultPageSize));
64
Stream stream = StreamHelpers.
StringToStream
("A");
74
Stream stream = StreamHelpers.
StringToStream
("x\x1Ay");
84
Stream stream = StreamHelpers.
StringToStream
(new String('\x1a', StreamMappedString.DefaultPageSize * 2) + "x");
94
Stream stream = StreamHelpers.
StringToStream
(new String('x', StreamMappedString.DefaultPageSize));
104
Stream stream = StreamHelpers.
StringToStream
("abcdefg");
113
Stream stream = StreamHelpers.
StringToStream
("abcdefg");
122
Stream stream = StreamHelpers.
StringToStream
("abcxdef");
137
Stream stream = StreamHelpers.
StringToStream
("abcdefg");
146
Stream stream = StreamHelpers.
StringToStream
("abcdefg" + new String('x', StreamMappedString.DefaultPageSize));
169
RestartCountingStream stream = new RestartCountingStream(StreamHelpers.
StringToStream
("abcdefg"));
186
RestartCountingStream stream = new RestartCountingStream(StreamHelpers.
StringToStream
("a"));
196
Stream stream = StreamHelpers.
StringToStream
("a" + new String('x', StreamMappedString.DefaultPageSize * 2));
211
RestartCountingStream stream = new RestartCountingStream(StreamHelpers.
StringToStream
("\xd"));
223
Stream stream = StreamHelpers.
StringToStream
("x");
236
Stream stream = StreamHelpers.
StringToStream
("abc");
248
Stream stream = StreamHelpers.
StringToStream
(new String('x', StreamMappedString.DefaultPageSize * 2));