org.scalatest.matchers.Matchers.MatcherWrapper

class AndContainWord

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

final class AndContainWord
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 apply [T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (contain (2) and contain (3 - 1))
                                                   
       
def key [T](expectedElement : T) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain key ("two") and contain key ("one"))
                                                                           ^
       
def value [T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain value (2) and contain value (1))
                                                                         ^
       
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 apply[T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (contain (2) and contain (3 - 1))
                                                   
       

def key[T](expectedElement : T) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain key ("two") and contain key ("one"))
                                                                           ^
       

def value[T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain value (2) and contain value (1))
                                                                         ^
       


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