53 references to 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)
115TextWriter.Null, 154TextWriter.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)
1118TextWriter.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)
7365var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7387var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7409var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7429var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7433comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance);
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.cs (4)
80_output = TextWriter.Null; 81_errorOutput = TextWriter.Null; 117_ = Task.Run(() => SetOutputs(TextWriter.Null, TextWriter.Null));
Microsoft.CodeAnalysis.UnitTests (2)
Text\SourceTextTests.cs (2)
456SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(4, 4))); 465SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(2, 4)));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
388Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 407Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 426Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 9732Dim comp = vbc.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing)
System.Console (3)
System\Console.cs (3)
239TextWriter.Null : 678if (newOut != TextWriter.Null) 695if (newError != TextWriter.Null)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (1)
40Null;