LeftValuable

class LeftValuable[L, R](leftProj: LeftProjection[L, R], pos: Position) extends Serializable

Wrapper class that adds a value method to LeftProjection, allowing you to make statements like:

either.left.value should be > 9
Value parameters:
leftProj

A LeftProjection to convert to LeftValuable, which provides the value method.

trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def value: L

Returns the Left value contained in the wrapped LeftProjection, if defined as a Left, else throws TestFailedException with a detail message indicating the Either was defined as a Right, not a Left.

Returns the Left value contained in the wrapped LeftProjection, if defined as a Left, else throws TestFailedException with a detail message indicating the Either was defined as a Right, not a Left.