lib/gator/as3/generators/test/asunit4/klass.as.tt in gator-as3-0.0.6.pre vs lib/gator/as3/generators/test/asunit4/klass.as.tt in gator-as3-0.0.7.pre
- old
+ new
@@ -1,12 +1,33 @@
package <%= package_name %>
{
+ import asunit.asserts.*;
public class <%= class_name %>
{
- [Test]
- public function testSomething():void
- {
- }
+ private var instance:<%= instance_name %>;
+ [Before]
+ public function setUp():void
+ {
+ instance=new <%= instance_name %>();
+ }
+
+ [After]
+ public function tearDown():void
+ {
+ instance=null;
+ }
+
+ [Test]
+ public function should_be_instantiated():void
+ {
+ assertTrue(instance is <%= instance_name %>);
+ }
+
+ [Test]
+ public function should_fail():void
+ {
+ assertTrue(false);
+ }
}
}
\ No newline at end of file