33 references to StreamHelpers
Microsoft.Build.Engine.UnitTests (1)
Construction\SolutionFile_OldParser_Tests.cs (1)
800StreamReader sr = StreamHelpers.StringToStreamReader(solutionFileContents);
Microsoft.Build.Tasks.UnitTests (32)
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 (20)
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)); 159Stream stream = StreamHelpers.StringToStream("\u00C3ngelo's Steak House", System.Text.Encoding.UTF32); 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));