-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0275972
commit b00798a
Showing
2 changed files
with
32 additions
and
31 deletions.
There are no files selected for viewing
55 changes: 25 additions & 30 deletions
55
hamcrest-unit-test/src/org/hamcrest/core/IsAnythingTest.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,28 @@ | ||
package org.hamcrest.core | ||
{ | ||
|
||
import org.hamcrest.*; | ||
|
||
public class IsAnythingTest extends AbstractMatcherTestCase | ||
{ | ||
|
||
[Test] | ||
public function alwaysEvaluatesToTrue():void | ||
{ | ||
|
||
assertThat(null, anything()); | ||
assertThat(new Object(), anything()); | ||
assertThat("hi", anything()); | ||
} | ||
|
||
[Test] | ||
public function hasUsefulDefaultDescription():void | ||
{ | ||
|
||
assertDescription("ANYTHING", anything()); | ||
} | ||
|
||
[Test] | ||
public function canOverrideDescription():void | ||
{ | ||
|
||
var description:String = "description"; | ||
assertDescription(description, anything(description)); | ||
} | ||
} | ||
import org.hamcrest.*; | ||
|
||
public class IsAnythingTest extends AbstractMatcherTestCase | ||
{ | ||
[Test] | ||
public function alwaysEvaluatesToTrue():void | ||
{ | ||
assertThat(null, anything()); | ||
assertThat(new Object(), anything()); | ||
assertThat("hi", anything()); | ||
} | ||
|
||
[Test] | ||
public function hasUsefulDefaultDescription():void | ||
{ | ||
assertDescription("ANYTHING", anything()); | ||
} | ||
|
||
[Test] | ||
public function canOverrideDescription():void | ||
{ | ||
var description:String = "description"; | ||
assertDescription(description, anything(description)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters