AsUnit Assertions == assertTrue( message:String, condition:Boolean ) // Asserts that a condition is true assertFalse( message:String, condition:Boolean ) // Asserts that a condition is false assertEquals( message:String, value1:*, value2:* ) // Asserts that two objects are equal assertNotNull( message:String, object:* ) // Asserts that an object isn't null assertNull( message:String, object:* ) // Asserts that an object is null assertSame( message:String, object1:*, object2:* ) // Asserts that two objects refer to the same object assertNotSame( message:String, object1:*, object2:* ) // Asserts that two objects do not refer to the same object fail( message:String ) // Fails a test with the given message // Asserts that two numerical values are equal within a tolerance range assertEqualsFloat( message:String, value1:*, value2:*, tolerance:* )
cheat sheets.
$ cheat asunit( add new | see all )
- updated sheets

- mysql_select
- cheat
- cryptsetup
- burm
- perl
- port
- yuilang
- queriac
- mechanize
- sness
- nonsense
- haml
- git
- assert_valid
- marsmission
Advertisement