| 1 |
package org.libspark.gunyarapaint.framework.module |
|---|
| 2 |
{ |
|---|
| 3 |
import org.flexunit.Assert; |
|---|
| 4 |
import org.libspark.gunyarapaint.framework.Recorder; |
|---|
| 5 |
import org.libspark.gunyarapaint.framework.modules.DrawModuleFactory; |
|---|
| 6 |
import org.libspark.gunyarapaint.framework.modules.EraserModule; |
|---|
| 7 |
import org.libspark.gunyarapaint.framework.modules.IDrawable; |
|---|
| 8 |
|
|---|
| 9 |
public final class EraserModuleTest |
|---|
| 10 |
{ |
|---|
| 11 |
[Test] |
|---|
| 12 |
public function createInstance():void |
|---|
| 13 |
{ |
|---|
| 14 |
var recorder:Recorder = Recorder.create(1, 1, 1); |
|---|
| 15 |
var context:DrawModuleFactory = new DrawModuleFactory(recorder); |
|---|
| 16 |
var module:IDrawable = context.getModule(EraserModule.ERASER); |
|---|
| 17 |
Assert.assertTrue(module is EraserModule); |
|---|
| 18 |
Assert.assertEquals(module.name, EraserModule.ERASER); |
|---|
| 19 |
} |
|---|
| 20 |
} |
|---|
| 21 |
} |
|---|