Method Throw

Namespace
BunsenBurner
Assembly
BunsenBurner.dll

Throw<TException>()

Flips the result of the act step to the error side

public TestBuilder<TSyntax>.Acted<TData, TException> Throw<TException>() where TException : Exception

Returns

TestBuilder<TSyntax>.Acted<TData, TException>

an acted test

Type Parameters

TException

exception type to expect

Exceptions

NoFailureException

thrown when the act step does not throw an exception

Throw()

Flips the result of the act step to the error side

public TestBuilder<TSyntax>.Acted<TData, Exception> Throw()

Returns

TestBuilder<TSyntax>.Acted<TData, Exception>

an acted test

Exceptions

NoFailureException

thrown when the act step does not throw an exception