org.scalatest.matchers.Matchers

class ResultOfBeWordForAnyRef

[source: org/scalatest/matchers/Matchers.scala]

final class ResultOfBeWordForAnyRef[T <: AnyRef](left : T, shouldBeTrue : Boolean)
extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.
Author
Bill Venners
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
def theSameInstanceAs(right : AnyRef) : Unit
This method enables the following syntax:
     object should be theSameInstanceAs anotherObject
                      ^
     

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)
                    ^
     


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.