8 instantiations of NodeStatus
Microsoft.Build.CommandLine.UnitTests (4)
NodeStatus_SizeChange_Tests.cs (1)
25
private readonly NodeStatus _status =
new
("Namespace.Project", "TargetFramework", "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (3)
36
Func<NodeStatus> newNodeStatus = () => new
NodeStatus
("project", "tfm", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch());
61
NodeStatus node =
new
("Namespace.Project", "TargetFramework", "Build", new TickingStopwatch());
93
NodeStatus node =
new
("Namespace.Project", "TargetFramework", TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
MSBuild (4)
TerminalLogger\TerminalLogger.cs (4)
506
_nodes[nodeIndex] = new
NodeStatus
(e.ProjectFile!, null, "Restore", _projects[c].Stopwatch);
733
NodeStatus nodeStatus =
new
(projectFile, project.TargetFramework, targetName, project.Stopwatch);
852
var status = new
NodeStatus
(node.Project, node.TargetFramework, TerminalColor.Green, indicator, displayName, project.Stopwatch);
862
var status = new
NodeStatus
(node.Project, node.TargetFramework, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
21 references to NodeStatus
Microsoft.Build.CommandLine.UnitTests (6)
NodeStatus_SizeChange_Tests.cs (1)
25
private readonly
NodeStatus
_status = new("Namespace.Project", "TargetFramework", "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (5)
36
Func<
NodeStatus
> newNodeStatus = () => new NodeStatus("project", "tfm", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch());
61
NodeStatus
node = new("Namespace.Project", "TargetFramework", "Build", new TickingStopwatch());
93
NodeStatus
node = new("Namespace.Project", "TargetFramework", TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
110
private string Animate(params
NodeStatus
[][] nodeStatusesUpdates)
115
NodesFrame previousFrame = new(Array.Empty<
NodeStatus
>(), 0, 0);
MSBuild (15)
TerminalLogger\NodesFrame.cs (5)
19
private readonly (
NodeStatus
nodeStatus, int durationLength)[] _nodes;
27
public NodesFrame(
NodeStatus
?[] nodes, int width, int height)
32
_nodes = new (
NodeStatus
, int)[nodes.Length];
34
foreach (
NodeStatus
? status in nodes)
45
NodeStatus
status = _nodes[i].nodeStatus;
TerminalLogger\NodeStatus.cs (1)
63
obj is
NodeStatus
status &&
TerminalLogger\TerminalLogger.cs (9)
103
private
NodeStatus
?[] _nodes = Array.Empty<
NodeStatus
>();
149
private NodesFrame _currentFrame = new(Array.Empty<
NodeStatus
>(), 0, 0);
260
_nodes = new
NodeStatus
[nodeCount + 1];
733
NodeStatus
nodeStatus = new(projectFile, project.TargetFramework, targetName, project.Stopwatch);
738
private void UpdateNodeStatus(BuildEventContext buildEventContext,
NodeStatus
? nodeStatus)
840
var
node = _nodes[NodeIndexForContext(buildEventContext)];
852
var
status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Green, indicator, displayName, project.Stopwatch);
862
var
status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);