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.38 lib/sprout/generators/test/templates/TestCase.as
sprout-as2-bundle-0.1.23 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.1.37 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.1.32 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.1.39 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.2.3 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.2.3 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-1.0.11 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.1.40 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.1.40 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.2.2 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.2.9 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.1.41 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.20 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.12 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.2.1 lib/sprout/generators/test/templates/TestCase.as
sprout-as3-bundle-0.2.1 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.2.9 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-1.0.10 lib/sprout/generators/class/templates/TestCase.as
sprout-as3-bundle-0.1.41 lib/sprout/generators/test/templates/TestCase.as