# Yahoo! UI Library

### test 3.0.0

Yahoo! UI Library > test > Assert.ShouldFail
Search:
Filters
Show Private Show Protected Show Deprecated

## Class Assert.ShouldFail - extends Assert.Error

ShouldFail is subclass of Error that is thrown whenever a test was expected to fail but did not.

### Constructor

Assert.ShouldFail `( message )`

Parameters:
  `message <String>` The message to display when the error occurs.

### Properties

#### name - `String`

The name of the error that occurred.

#### Properties inherited from Assert.Error:

`name`

#### Methods inherited from Assert.Error:

`getMessage, toString, valueOf`

Copyright © 2009 Yahoo! Inc. All rights reserved.