Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.4 KB

SUnit.md

File metadata and controls

31 lines (25 loc) · 1.4 KB

SUnit

TestAsserter extensions

  • assert:hasTheSameElementsInTheSameOrderThat: asserts that two sequenceable collections have the same elements in the same order
  • assert:includes: asserts that a collection includes an element
  • deny:includes: denies that a collection includes an element
  • should:raise:withMessageText: asserts that a block raises a specific exception including a specific message text
  • use:asLocaleDuring: allows changing the current locale during a block execution
  • use:asNaturalLanguageTranslatorDuring: allows using and configuring a language translator during a block execution
  • withTheOnlyOneIn:do: provides a facility to assert that a collection has only one element and evaluates a block with it

TestAsserter extensions for GS64

  • assert:identicalTo: asserts that an object is identical to another one
  • deny:identicalTo: denies that an object is identical to another one
  • assertCollection:hasSameElements: asserts that two collections have the same elements
  • fail will make the test fail
  • should:raise:withExceptionDo: asserts that a block raises a specific exception and evaluates the provided block with the signal

TestCase extensions

  • runOnlyInGemStone64: evaluates the block only if running in GS64
  • runOnlyInPharo: evaluates the block only if running in Pharo
  • runOnlyInVAST: evaluates the block only if running in VAST Platform