AndHaveWord

final class AndHaveWord

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix def length(expectedLength: Long): MatcherFactory4[SC, TC1, TC2, TC3, Length]

This method enables the following syntax given a MatcherFactory3:

This method enables the following syntax given a MatcherFactory3:

aMatcherFactory and have length (3 - 1)
                        ^
infix def message(expectedMessage: String): MatcherFactory4[SC, TC1, TC2, TC3, Messaging]

This method enables the following syntax given a MatcherFactory3:

This method enables the following syntax given a MatcherFactory3:

aMatcherFactory and have message ("A message from Mars!")
                        ^
infix def size(expectedSize: Long): MatcherFactory4[SC, TC1, TC2, TC3, Size]

This method enables the following syntax given a MatcherFactory3:

This method enables the following syntax given a MatcherFactory3:

aMatcherFactory and have size (3 - 1)
                        ^