1 instantiation of PrintLineDebugger
Microsoft.Build (1)
PrintLineDebugger.cs (1)
110
return new
PrintLineDebugger
(
44 references to PrintLineDebugger
Microsoft.Build (6)
PrintLineDebugger.cs (6)
35
public static Lazy<
PrintLineDebugger
> Default =
36
new Lazy<
PrintLineDebugger
>(() => Create(null, null, false));
38
public static Lazy<
PrintLineDebugger
> DefaultWithProcessInfo =
39
new Lazy<
PrintLineDebugger
>(() => Create(null, null, true));
105
public static
PrintLineDebugger
Create(
161
ErrorUtilities.ThrowInternalError($"The writer from this {nameof(
PrintLineDebugger
)} instance differs from the static writer.");
Microsoft.Build.Engine.UnitTests (36)
PrintLineDebugger_Tests.cs (36)
44
using (
var
logger =
PrintLineDebugger
.Create(writer.Writer()))
69
using (
var
logger =
PrintLineDebugger
.Create(compositeWriter.Writer))
88
using (
var
logger =
PrintLineDebugger
.Create(writer.Writer(), "foo"))
107
PrintLineDebugger
.Default.Value.Log("outOfContext1");
116
PrintLineDebugger
.Default.Value.Log("inner");
119
PrintLineDebugger
.Default.Value.Log("outOfContext2");
135
PrintLineDebugger
.Default.Value.Log("outOfContext1");
139
PrintLineDebugger
.SetWriter(writer.Writer());
141
PrintLineDebugger
.Default.Value.Log("inner");
145
PrintLineDebugger
.UnsetWriter();
148
PrintLineDebugger
.Default.Value.Log("outOfContext2");
163
PrintLineDebugger
.Default.Value.Log("outOfContext1");
165
using (
var
logger =
PrintLineDebugger
.Create(writer.Writer()))
170
PrintLineDebugger
.Default.Value.Log("inner");
174
PrintLineDebugger
.Default.Value.Log("outOfContext2");
199
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
200
PrintLineDebugger
.UnsetWriter();
202
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
211
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
215
PrintLineDebugger
.UnsetWriter();
216
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
217
PrintLineDebugger
.UnsetWriter();
223
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
224
PrintLineDebugger
.UnsetWriter();
234
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
238
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
239
PrintLineDebugger
.UnsetWriter();
245
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
246
PrintLineDebugger
.UnsetWriter();
255
PrintLineDebugger
.UnsetWriter();
259
PrintLineDebugger
.SetWriter(new MockWriter().Writer());
260
PrintLineDebugger
.UnsetWriter();
Microsoft.Build.UnitTests.Shared (2)
TestEnvironment.cs (2)
829
private readonly
PrintLineDebugger
_printLineDebugger;
833
_printLineDebugger =
PrintLineDebugger
.Create(writer);