Sha256: 26c8d5373b2e46483d40a6c52a665562c36acd99c79f57a395c3b5eabac6291d
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
package asunit.support { import asunit.asserts.*; import flash.display.Sprite; public class MultiMethod { public static var methodsCalled:Array = []; protected var sprite:Sprite; public function MultiMethod() { } [BeforeClass] public static function runBeforeClass1():void { methodsCalled.push(arguments.callee); } [BeforeClass] public static function runBeforeClass2():void { methodsCalled.push(arguments.callee); } [Before] public function runBefore1():void { methodsCalled.push(arguments.callee); sprite = new Sprite(); } [Before] public function runBefore2():void { methodsCalled.push(arguments.callee); } [After] public function runAfter1():void { methodsCalled.push(arguments.callee); sprite = null; } [After] public function runAfter2():void { methodsCalled.push(arguments.callee); } [Test] public function numChildren_is_0_by_default():void { methodsCalled.push(arguments.callee); assertEquals(0, sprite.numChildren); } [Test] public function stage_is_null_by_default():void { methodsCalled.push(arguments.callee); assertNull(sprite.stage); } [Test] public function fail_assertEquals():void { methodsCalled.push(arguments.callee); assertEquals('wrongName', sprite.name); } [AfterClass] public static function runAfterClass1():void { methodsCalled.push(arguments.callee); } [AfterClass] public static function runAfterClass2():void { methodsCalled.push(arguments.callee); } } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asunit4-4.2.3.pre | test/asunit/support/MultiMethod.as |
asunit4-4.2.2.pre | test/asunit/support/MultiMethod.as |
asunit4-4.2.1.pre | test/asunit/support/MultiMethod.as |