1337 references to MemoryStream
aspire (1)
Aspire.Dashboard (6)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Tests (44)
BinaryFormatTests (19)
BuildValidator (2)
ComDisabled.Tests (1)
Contract.Service.IntegrationTests (1)
csc (2)
dotnet-svcutil-lib (11)
dotnet-user-secrets (1)
Extensibility.MessageEncoder.IntegrationTests (1)
FilesWebSite (3)
FormatterWebSite (1)
GenerateDocumentationAndConfigFiles (2)
GetDocument.Insider (1)
HttpStress (1)
IdeBenchmarks (1)
IdentitySample.PasskeyConformance (1)
illink (1)
InMemory.FunctionalTests (13)
InProcessWebSite (2)
Metrics (2)
Metrics.Legacy (2)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Test (5)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (15)
Microsoft.AspNetCore.Components.Server.Tests (15)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Tests (6)
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (47)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.AspNetCore.Http.Results.Tests (75)
ResultsTests.cs (3)
296var stream = new MemoryStream();
1753(() => Results.File(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
1766(() => Results.Stream(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (62)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
FormFileModelBindingIntegrationTest.cs (3)
554new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"),
555new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"),
556new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"),
TryUpdateModelIntegrationTest.cs (3)
1055new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"),
1056new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"),
1057new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"),
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (10)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Microsoft.AspNetCore.OpenApi.Tests (6)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.RequestDecompression.Tests (8)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression.Tests (5)
Microsoft.AspNetCore.Routing.Tests (8)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.StaticFiles.Tests (2)
Microsoft.AspNetCore.Tests (1)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.AspNetCore.WebUtilities.Tests (54)
HttpRequestStreamReaderTest.cs (12)
102var reader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8);
192var stream = new MemoryStream();
216var stream = new MemoryStream();
240var stream = new MemoryStream();
253var stream = new MemoryStream();
359var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, size, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
378var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
391var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
411var stream = new MemoryStream();
442yield return new object?[] { new MemoryStream(), null, ArrayPool<byte>.Shared, ArrayPool<char>.Shared };
443yield return new object?[] { new MemoryStream(), Encoding.UTF8, null, ArrayPool<char>.Shared };
444yield return new object?[] { new MemoryStream(), Encoding.UTF8, ArrayPool<byte>.Shared, null };
HttpResponseStreamWriterTest.cs (10)
18var memoryStream = new MemoryStream();
630var stream = new MemoryStream();
665var stream = new MemoryStream();
687var stream = new MemoryStream();
747var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, size, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
766var httpResponseStreamWriter = new HttpResponseStreamWriter(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
779var httpResponseStreamWriter = new HttpResponseStreamWriter(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
849yield return new object?[] { new MemoryStream(), null, ArrayPool<byte>.Shared, ArrayPool<char>.Shared };
850yield return new object?[] { new MemoryStream(), Encoding.UTF8, null, ArrayPool<char>.Shared };
851yield return new object?[] { new MemoryStream(), Encoding.UTF8, ArrayPool<byte>.Shared, null };
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (117)
Emit\ResourceTests.cs (15)
210var result = c1.Emit(new MemoryStream(), manifestResources:
221result = c1.Emit(new MemoryStream(), manifestResources:
240var result = c1.Emit(new MemoryStream(), manifestResources:
260var result = c1.Emit(new MemoryStream(), manifestResources:
273result = c1.Emit(new MemoryStream(), manifestResources:
293var result = c1.Emit(new MemoryStream(), manifestResources:
313var result = c1.Emit(new MemoryStream(), manifestResources:
323result = c1.Emit(new MemoryStream(), manifestResources:
340var result = c1.Emit(new MemoryStream(), manifestResources:
354result = c1.Emit(new MemoryStream(), manifestResources:
369result = c1.Emit(new MemoryStream(), manifestResources:
382result = c1.Emit(new MemoryStream(), manifestResources:
770var output = new MemoryStream();
797var output = new MemoryStream();
900var result = c1.Emit(new MemoryStream(), manifestResources:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (62)
PDB\PDBTests.cs (26)
52var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
72var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
113var result = outputCompilation.Emit(new MemoryStream(), pdbStream: new MemoryStream());
142var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
254peStream: new MemoryStream(),
256pdbStream: new MemoryStream(),
286peStream: new MemoryStream(),
288pdbStream: new MemoryStream(),
318peStream: new MemoryStream(),
320pdbStream: new MemoryStream(),
350peStream: new MemoryStream(),
352pdbStream: new MemoryStream(),
404peStream: new MemoryStream(),
406pdbStream: new MemoryStream(),
715var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol());
720result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol());
725result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol());
730result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Compilation\CompilationAPITests.cs (18)
389Assert.Throws<ArgumentException>(() => c.Emit(new MemoryStream(), pdbStream));
396var stream = new MemoryStream();
447Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new TestStream(canRead: true, canWrite: false, canSeek: true)));
448Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded)));
451peStream: new MemoryStream(),
452pdbStream: new MemoryStream(),
457peStream: new MemoryStream(),
460embeddedTexts: new[] { EmbeddedText.FromStream("_", new MemoryStream()) }));
463peStream: new MemoryStream(),
466embeddedTexts: new[] { EmbeddedText.FromStream("_", new MemoryStream()) }));
469peStream: new MemoryStream(),
473peStream: new MemoryStream(),
478peStream: new MemoryStream(),
479pdbStream: new MemoryStream(),
3096var moduleStream = new MemoryStream();
3115var moduleStream = new MemoryStream();
3136var moduleStream = new MemoryStream();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (8)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (1)
Microsoft.CodeAnalysis.Test.Utilities (11)
Microsoft.CodeAnalysis.UnitTests (14)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (26)
Microsoft.Data.Analysis.Tests (11)
Microsoft.DotNet.Build.Tasks.Installers (8)
src\CpioWriter.cs (1)
49CpioEntry trailerEntry = new(0, "TRAILER!!!", 0, 0, 0, 0, 0, 0, 0, 0, 0, new MemoryStream());
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SignTool.Tests (3)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (3)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DataIngestion.Tests (4)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (3)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.JSInterop.Tests (3)
Microsoft.Maui (1)
Microsoft.Maui.Graphics (11)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (2)
Microsoft.ML.Data (6)
Microsoft.ML.Ensemble (2)
Microsoft.ML.FastTree (1)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.Parquet (3)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Samples (1)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.Tests (23)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.Transforms (1)
Microsoft.VisualStudio.Extensibility.Testing.Xunit (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
PresentationBuildTasks (8)
PresentationCore (4)
PresentationCore.Tests (2)
PresentationFramework (9)
PresentationFramework-SystemDrawing (1)
ReachFramework (9)
Replay (2)
Roslyn.Diagnostics.Analyzers (2)
Roslyn.Test.PdbUtilities (7)
Roslyn.VisualStudio.Next.UnitTests (1)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (1)
Shared.Tests (1)
SocialWeather (2)
Sockets.FunctionalTests (2)
System.Configuration.ConfigurationManager (3)
System.Data.Common (6)
System.Drawing.Common (6)
System.Drawing.Common.Tests (25)
System.Formats.Tar (5)
System.IO.Compression (4)
System.IO.IsolatedStorage (2)
System.Memory.Data (1)
System.Net.Http (3)
System.Net.HttpListener (2)
System.Net.Mail (2)
System.Net.Requests (1)
System.Net.Security (2)
System.Private.CoreLib (1)
System.Private.DataContractSerialization (3)
System.Private.Windows.Core (2)
System.Private.Windows.Core.Tests (12)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (2)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Security.Cryptography (3)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Xml (5)
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (15)
System.ServiceModel.Primitives.Tests (5)
System.ServiceModel.Syndication (2)
System.Transactions.Local (1)
System.Windows.Forms (13)
System.Windows.Forms.Design (6)
System.Windows.Forms.Design.Tests (21)
System.Windows.Forms.Tests (68)
System.Windows.Forms.UI.IntegrationTests (1)
Test.Utilities (2)
Text.Analyzers (2)
vbc (2)
VBCSCompiler (2)
VBCSCompiler.UnitTests (5)
WindowsBase.Tests (1)
WindowsFormsIntegration (2)
WsFedSample (1)