cheat sheets.

$ cheat asunit
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:* )
Version 1, updated 267 days ago.
. o 0 ( | history | revert to | current | diff )
( add new | see all )