Sha256: 081329bd7b2d324fe80251012f05be4571fca6889e85d70d8d6fc68753670393

Contents?: true

Size: 805 Bytes

Versions: 31

Compression:

Stored size: 805 Bytes

Contents

package <%= package_name %> {

	import asunit.framework.TestCase;

	public class <%= test_case_name  %> extends TestCase {
		private var <%= instance_name %>:<%= class_name %>;

		public function <%= test_case_name %>(methodName:String=null) {
			super(methodName)
		}

		override protected function setUp():void {
			super.setUp();
			<%= instance_name %> = new <%= class_name %>();
			addChild(<%= instance_name %>);
		}

		override protected function tearDown():void {
			super.tearDown();
			removeChild(<%= instance_name %>);
			<%= instance_name %> = null;
		}

		public function testInstantiated():void {
			assertTrue("<%= instance_name %> is <%= class_name %>", <%= instance_name %> is <%= class_name %>);
		}

		public function testFailure():void {
			assertTrue("Failing test", false);
		}
	}
}

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
sprout-as3-bundle-1.0.37 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.36 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.32 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.31 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-flex4-bundle-0.1.4 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.29 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.30 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-flex4-bundle-0.1.3 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.1.38 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.1.34 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.1.39 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.1.37 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.20 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.10 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.1.41 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.2.2 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.2.1 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.12 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-0.2.3 lib/sprout/generators/component/templates/VisualTestCase.as
sprout-as3-bundle-1.0.11 lib/sprout/generators/component/templates/VisualTestCase.as