ScalaTest 1.1
|
|
org/scalatest/matchers/Matchers.scala
]
final
class
ResultOfBeWordForAnyRef[T <: AnyRef](left : T, shouldBeTrue : Boolean)
extends
AnyRefShouldMatchers
or MustMatchers
for an overview of
the matchers DSL.Method Summary | |
def
|
a
(symbol : scala.Symbol) : Unit
This method enables the following syntax:
fileMock should be a ('file) ^ |
def
|
a
(bePropertyMatcher : BePropertyMatcher[T]) : Unit
This method enables the following syntax, where
badBook is, for example, of type Book and
goodRead refers to a BePropertyMatcher[Book] :
badBook should be a (goodRead) ^ |
def
|
an
(symbol : scala.Symbol) : Unit
This method enables the following syntax:
fruit should be an ('orange) ^ |
def
|
an
(beTrueMatcher : BePropertyMatcher[T]) : Unit
This method enables the following syntax, where
badBook is, for example, of type Book and
excellentRead refers to a BePropertyMatcher[Book] :
book should be an (excellentRead) ^ |
def
|
theSameInstanceAs
(right : AnyRef) : Unit
This method enables the following syntax:
object should be theSameInstanceAs anotherObject ^ |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
object should be theSameInstanceAs anotherObject ^
def
a(symbol : scala.Symbol) : Unit
fileMock should be a ('file) ^
def
a(bePropertyMatcher : BePropertyMatcher[T]) : Unit
badBook
is, for example, of type Book
and
goodRead
refers to a BePropertyMatcher[Book]
:
badBook should be a (goodRead) ^
def
an(symbol : scala.Symbol) : Unit
fruit should be an ('orange) ^
def
an(beTrueMatcher : BePropertyMatcher[T]) : Unit
badBook
is, for example, of type Book
and
excellentRead
refers to a BePropertyMatcher[Book]
:
book should be an (excellentRead) ^
ScalaTest 1.1
|
|