I will use a simple sample to explain the usage of the flex unit in this article .
(1) Download the flex unit package(1.0)
(2) Create a flex project named FlexUTSample, then add FlexUnit4.swc and FlexUnit4UIListener to the builder path of the project.
(3) Create the business logic class.
Create a class named MathCommand under the myFlexUnit folder.
(4) Create a test case class.
Create a test case class named MathCommandTest under the myFlexUnit folder to test MathCommand.
(5) Create a test suite.
A test suite is a test group which contains several test case class.
Create a class named MathCommandTestSuite under the myFlexUnit folder.
(6) Create UI to display the test result.
Creat a mxml file named MathCommandTestUI.