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
.
Wrapper class that adds a
value
method toLeftProjection
, allowing you to make statements like:either.left.value should be > 9