Sha256: e33b74574f63ffd9c8b68faf82a317d2a03f6fea31b536d745f5a9a22826d8f1

Contents?: true

Size: 893 Bytes

Versions: 3

Compression:

Stored size: 893 Bytes

Contents

package asunit.support {
    
    import asunit.framework.TestCase;

    public class LegacyTestCase extends TestCase {

        public static var callCount:int;

        private var instance:*;

        override protected function setUp():void {
            super.setUp();
            instance = {};
            instance.name = "foo";
        }

        override protected function tearDown():void {
            super.tearDown();
            instance = null;
        }

        public function testSomething():void {
            assertEquals("foo", instance.name);
        }

        public function someNonTestMethod():void {
            throw new Error("This should not be called");
        }

        [Test]
        // Ensure this method only gets called once
        // in a given test run...
        public function testSomethingElse():void {
            callCount++;
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asunit4-4.2.3.pre test/asunit/support/LegacyTestCase.as
asunit4-4.2.2.pre test/asunit/support/LegacyTestCase.as
asunit4-4.2.1.pre test/asunit/support/LegacyTestCase.as