I want to use Flex Flex Suite.
I have no experience testing modules.
I uploaded the Turnkey project , but I was a bit overloaded.
I just want to start by creating a simple hello world unit test.
if I have a class called MyClasswith two methods square()and cube().
and I want to create a unit test as follows:
public class MyTest
{
public function testMyClass():void
{
var myClass:MyClass = new MyClass();
assert(myClass.square(7) == 49);
assert(myClass.cube(7) == 343);
assert(myClass.square(5) == 50);
}
}
How can I make this work?
source
share