资 源 简 介
FUnit is the first generation xUnit testing tool to leverage the custom metadata capabilities of the Flex mxmlc compiler. The tag-based attribute model of FUnit makes it the most intuitive unit-testing framework ever created for the Flex platform.
How does FUnit compare to FlexUnit?
Note: Both of these samples are functionally identical.
FlexUnit Implementation
```
public class TestExecute extends TestCase
{
public static function getSuite() : TestSuite
{
var suite : TestSuite = new TestSuite();
suite.addTest(new TestExecute("testGetString"));
suite.addTest(new TestExecute("testExecuteNull"));
return suite;
}
public override function setup() : void
{
CustomClass.setString("TestString");
}
public function testGetString() : void
{
// sample code to test
Assert.assertEquals( CustomClass.getString(), "TestString");
}
public function testExec