Class ProtoRunGateContext

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The evidence a Run gate evaluates: everything the run's collectors and report sources produced, whatever kind. Coverage, findings, metrics and observations all arrive as ProtoReportItem.

public sealed class ProtoRunGateContext
Inheritance
ProtoRunGateContext
Inherited Members
Extension Methods

Constructors

ProtoRunGateContext(IReadOnlyList<ProtoReportItem>)

public ProtoRunGateContext(IReadOnlyList<ProtoReportItem> items)

Parameters

items IReadOnlyList<ProtoReportItem>

Properties

Items

Gets every item the run collected.

public IReadOnlyList<ProtoReportItem> Items { get; }

Property Value

IReadOnlyList<ProtoReportItem>

Methods

ForTarget(string)

Returns the items of one target, including nested items.

public IEnumerable<ProtoReportItem> ForTarget(string targetName)

Parameters

targetName string

Returns

IEnumerable<ProtoReportItem>

InCategory(string)

Returns the items in one category, including nested items.

public IEnumerable<ProtoReportItem> InCategory(string category)

Parameters

category string

Returns

IEnumerable<ProtoReportItem>

ItemsOfKind(string)

Returns the items of one kind, including nested items; ProtoReportItemKinds names the core kinds. Items are flattened exactly as coverage summaries flatten them.

public IEnumerable<ProtoReportItem> ItemsOfKind(string kind)

Parameters

kind string

Returns

IEnumerable<ProtoReportItem>

WithStatus(ProtoReportStatus)

Returns the items with one status, including nested items.

public IEnumerable<ProtoReportItem> WithStatus(ProtoReportStatus status)

Parameters

status ProtoReportStatus

Returns

IEnumerable<ProtoReportItem>