Sha256: 72310b9f26c41bca61e705613d25a1ea240c479b3e8a1547b7fdfaf517419914

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

package <%= package_name %>
{
	import asunit.asserts.*;

	import flash.display.Sprite;

    public class <%= class_name %>
    {
		[Inject]
	    public var context:Sprite;
	    
		private var instance:<%= instance_name %>;

		[Before]
		public function setUp():void
		{
		    instance=new <%= instance_name %>();
		    context.addChild(instance);
		}

		[After]
		public function tearDown():void
		{
		    context.removeChild(instance);
		    instance=null;
		}

		[Test]
		public function should_be_instantiated():void
		{
		    assertTrue(instance is <%= instance_name %>);
		}
		
		[Test]
		public function should_fail():void
		{
		    assertTrue(false);
		}
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gator-as3-robotlegs-0.0.3.pre lib/gator/as3/robotlegs/templates/as3/robotlegs/test/asunit4/view.as.tt