TrganContainer
Namespace: TrganReport
Represents a logical container for grouping related test executions.
Each container holds a thread-safe list of associated tests.
public class TrganContainer
Inheritance Object → TrganContainer
Properties
Tests
Gets a read-only list of tests associated with this container.
public IReadOnlyList<TrganTest> Tests { get; }
Property Value
Constructors
TrganContainer(TrganHtmlReport, String, String[])
Represents a logical container for grouping related test executions.
Each container holds a thread-safe list of associated tests.
public TrganContainer(TrganHtmlReport report, string containerName, String[] categories)
Parameters
report
TrganHtmlReport
Function Caller
containerName
String
The name of the container. In BDD, this is the feature name; in TDD, it's the test class name.
categories
String[]
Optional categories or tags used to classify the container.
These may represent modules, priorities, or custom labels.
Methods
CreateTest(String)
Creates and adds a new Test to the container. Thread-safe operation that links the test to the container.
public TrganTest CreateTest(string name)
Parameters
name
String
The name of the test.
Returns
TrganTest
A new TrganTest instance.