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