Table of Contents

Class ExampleResult

Namespace
TinyBDD
Assembly
TinyBDD.dll

Represents the result of a single example execution in a data-driven scenario.

public sealed class ExampleResult
Inheritance
ExampleResult
Inherited Members

Properties

Context

Gets the scenario context for this example's execution.

public ScenarioContext Context { get; }

Property Value

ScenarioContext

Data

Gets the example data that was used for this execution.

public object? Data { get; }

Property Value

object

Exception

Gets the exception that caused this example to fail, if any.

public Exception? Exception { get; }

Property Value

Exception

Index

Gets the zero-based index of this example in the examples collection.

public int Index { get; }

Property Value

int

Passed

Gets a value indicating whether this example passed all assertions.

public bool Passed { get; }

Property Value

bool