51 references to Null
aspire (1)
Utils\CliHostEnvironment.cs (1)
105Out = new AnsiConsoleOutput(TextWriter.Null),
Microsoft.AspNetCore.Mvc.Localization.Test (1)
HtmlLocalizerTest.cs (1)
149() => content.WriteTo(TextWriter.Null, new HtmlTestEncoder()));
Microsoft.AspNetCore.Mvc.Razor.Test (4)
DefaultTagHelperFactoryTest.cs (1)
163TextWriter.Null,
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
49TextWriter.Null,
RazorPageActivatorTest.cs (1)
265TextWriter.Null,
RazorPageCreateTagHelperTest.cs (1)
100TextWriter.Null,
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvoker.cs (2)
117TextWriter.Null, 156TextWriter.Null,
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageTest.cs (1)
33var viewContext = new ViewContext(pageContext, NullView.Instance, viewData, tempData, TextWriter.Null, new HtmlHelperOptions());
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
222public override Encoding Encoding => Null.Encoding;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
CacheTagHelperTest.cs (1)
937TextWriter.Null,
CacheTagKeyTest.cs (1)
545TextWriter.Null,
DistributedCacheTagHelperTest.cs (1)
743TextWriter.Null,
FormTagHelperTest.cs (1)
1166TextWriter.Null,
ImageTagHelperTest.cs (1)
306TextWriter.Null,
LinkTagHelperTest.cs (1)
1137TextWriter.Null,
PartialTagHelperTest.cs (1)
845TextWriter.Null,
ScriptTagHelperTest.cs (1)
1171TextWriter.Null,
TestableHtmlGenerator.cs (1)
88TextWriter.Null,
ValidationMessageTagHelperTest.cs (1)
477TextWriter.Null,
ValidationSummaryTagHelperTest.cs (1)
661TextWriter.Null,
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultEditorTemplates.cs (1)
461public override Encoding Encoding => Null.Encoding;
ViewExecutor.cs (1)
162TextWriter.Null,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
DefaultHtmlGeneratorTest.cs (1)
1044TextWriter.Null,
DefaultValidationHtmlAttributeProviderTest.cs (1)
264TextWriter.Null,
Rendering\ViewContextTests.cs (2)
27writer: TextWriter.Null, 54writer: TextWriter.Null,
ViewComponents\ContentViewComponentResultTest.cs (1)
47TextWriter.Null,
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
47TextWriter.Null,
ViewComponents\ViewComponentContextTest.cs (4)
30TextWriter.Null, 41TextWriter.Null); 92TextWriter.Null, 101TextWriter.Null);
ViewComponents\ViewViewComponentResultTest.cs (2)
527TextWriter.Null, 542TextWriter.Null);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
7369var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7391var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7414var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7434var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7438comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance);
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.cs (4)
79_output = TextWriter.Null; 80_errorOutput = TextWriter.Null; 116_ = Task.Run(() => SetOutputs(TextWriter.Null, TextWriter.Null));
Microsoft.CodeAnalysis.UnitTests (2)
Text\SourceTextTests.cs (2)
470SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(4, 4))); 479SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(2, 4)));
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
27private readonly Lazy<MetadataVisualizer> _lazyVisualizer = new(() => new MetadataVisualizer(readers, TextWriter.Null, MetadataVisualizerOptions.None));
System.Console (3)
System\Console.cs (3)
240TextWriter.Null : 725if (newOut != TextWriter.Null) 742if (newError != TextWriter.Null)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (1)
40Null;