Sha256: 811f72181792c056f272d87ee5cb85c8960f9b3ad5e83f4b2607c9340dd9b93d

Contents?: true

Size: 732 Bytes

Versions: 52

Compression:

Stored size: 732 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 %>();
		}

		override protected function tearDown():void {
			super.tearDown();
			<%= 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

52 entries across 38 versions & 3 rubygems

Version Path
sprout-as3-bundle-0.1.45 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.1.45 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.2.2 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-1.0.14 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.21 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.8 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.9 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.23 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-puremvc-bundle-0.1.0 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.22 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-puremvc-bundle-0.1.0 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-1.0.24 lib/sprout/generators/class/templates/TestCase.as