Sha256: 282f0f24152516a08b4bf7ede03e48bc7f727a317e93b553452bcc5f9cb60ad9

Contents?: true

Size: 801 Bytes

Versions: 29

Compression:

Stored size: 801 Bytes

Contents

import asunit.framework.TestCase;
import <%=package_name%>.<%=class_name%>;

class <%=package_name%>.<%=test_case_name%> extends TestCase {
	private var className:String = "<%=package_name%>.<%=test_case_name%>";
	private var <%=instance_name%>:<%=class_name%>;

	public function <%=test_case_name%>(testMethod:String) {
		super(testMethod);
	}

	public function setUp():Void {
		super.setUp();
		<%=instance_name%> = new <%=class_name%>();
	}

	public function tearDown():Void {
		super.tearDown();
		delete <%=instance_name%>;
	}

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

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
asproject-0.1.21 templates/asclass/as2/TestCase.as
asproject-0.1.118 templates/asclass/as2/TestCase.as
asproject-0.1.28 templates/asclass/as2/TestCase.as
asproject-0.1.27 templates/asclass/as2/TestCase.as
asproject-0.1.31 templates/asclass/as2/TestCase.as
asproject-0.1.30 templates/asclass/as2/TestCase.as
asproject-0.1.29 templates/asclass/as2/TestCase.as
asproject-0.1.33 templates/asclass/as2/TestCase.as
asproject-0.1.34 templates/asclass/as2/TestCase.as
asproject-0.1.35 templates/asclass/as2/TestCase.as
asproject-0.1.36 templates/asclass/as2/TestCase.as
asproject-0.1.37 templates/asclass/as2/TestCase.as
asproject-0.1.32 templates/asclass/as2/TestCase.as
asproject-0.1.40 templates/asclass/as2/TestCase.as
asproject-0.1.44 templates/asclass/as2/TestCase.as
asproject-0.1.43 templates/asclass/as2/TestCase.as
asproject-0.1.42 templates/asclass/as2/TestCase.as
asproject-0.1.41 templates/asclass/as2/TestCase.as
asproject-0.1.38 templates/asclass/as2/TestCase.as
asproject-0.1.68 templates/asclass/as2/TestCase.as