チェンジセット 3965: as3/gunyarapaint

差分発生行の前後
無視リスト:
コミット日時:
2010/06/06 19:10:13 (3 年前)
コミッタ:
hkrn
ログメッセージ:

should use the default distribution of FlexUnit?4 and name changes

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/gunyarapaint/branches/gunyarapaint/test/.actionScriptProperties

    r3910 r3965  
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
    2 <actionScriptProperties mainApplicationPath="test.mxml" projectUUID="62604922-e4ec-4c95-a52c-0d54b3a1be75" version="6"> 
     2<actionScriptProperties mainApplicationPath="FlexUnitRunner.mxml" projectUUID="62604922-e4ec-4c95-a52c-0d54b3a1be75" version="6"> 
    33  <compiler additionalCompilerArguments="-locale ja_JP" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true"> 
    44    <compilerSourcePath/> 
     
    1010      </libraryPathEntry> 
    1111      <libraryPathEntry kind="3" linkType="1" path="/framework/bin/framework.swc" useDefaultLinkType="false"/> 
    12       <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LIB_LOCATION}/version4libs/Common/"/> 
    13       <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LIB_LOCATION}/version4libs/FlexProject/"/> 
    14       <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LOCALE_LOCATION}/version4locale/"/> 
     12      <libraryPathEntry kind="1" linkType="1" path="/Users/hkrn/Library/Flex/FlexUnit4"/> 
    1513    </libraryPath> 
    1614    <sourceAttachmentPath/> 
    1715  </compiler> 
    1816  <applications> 
    19     <application path="FlexUnitApplication.mxml"/> 
    20     <application path="FlexUnitCompilerApplication.mxml"/> 
     17    <application path="FlexUnitRunner.mxml"/> 
    2118  </applications> 
    2219  <modules/> 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BeginFillCommandTest.as

    r3781 r3965  
    1111    public class BeginFillCommandTest 
    1212    { 
    13         [Test
    14         public function 塗り開始コマンドの実行():void 
     13        [Test(description="塗り開始コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BezierCurveCommandTest.as

    r3781 r3965  
    88    public final class BezierCurveCommandTest 
    99    { 
    10         [Test
    11         public function ベジエ曲線描写コマンドの実行():void 
     10        [Test(description="ベジエ曲線描写コマンドが正しく実行されること")
     11        public function shouldExecuteCorrectly():void 
    1212        { 
    1313            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompatibilityCommandTest.as

    r3781 r3965  
    99    public class CompatibilityCommandTest 
    1010    { 
    11         [Test
    12         public function 互換性オプションのうちレイヤーのアンドゥを有効にする設定の実行():void 
     11        [Test(description="互換性オプションのうちレイヤーのアンドゥを有効にする設定が正しく実行されること")
     12        public function shouldExecuteUndoLayerCompatibilityCorrectly():void 
    1313        { 
    1414            // default is false 
     
    3232        } 
    3333         
    34         [Test
    35         public function 互換性オプションのうち大きなピクセルを無効にする設定の実行():void 
     34        [Test(description="互換性オプションのうち大きなピクセルを無効にする設定が正しく実行されること")
     35        public function shouldExecuteBigPixelCompatibilityCorrectly():void 
    3636        { 
    3737            // default is true 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompositeCommandTest.as

    r3781 r3965  
    1111    public class CompositeCommandTest 
    1212    { 
    13         [Test
    14         public function 描写コマンドの実行():void 
     13        [Test(description="描写コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/DrawCircleCommandTest.as

    r3781 r3965  
    1111    public class DrawCircleCommandTest 
    1212    { 
    13         [Test
    14         public function 円弧を描写するコマンドの実行():void 
     13        [Test(description="円弧を描写するコマンドが正しく実行されること")
     14        public function shouldExecuteCorrctly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/EndFillComamndTest.as

    r3781 r3965  
    1111    public class EndFillComamndTest 
    1212    { 
    13         [Test
    14         public function 塗り終了コマンドの実行():void 
     13        [Test(description="塗り終了コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/FloodFillCommandTest.as

    r3781 r3965  
    1111    public class FloodFillCommandTest 
    1212    { 
    13         [Test
    14         public function 塗りつぶしコマンドの実行():void 
     13        [Test(description="塗りつぶしコマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/HorizontalMirrorCommandTest.as

    r3781 r3965  
    1111    public class HorizontalMirrorCommandTest 
    1212    { 
    13         [Test
    14         public function 水平ミラー作成コマンドの実行():void 
     13        [Test(description="水平ミラー作成コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/LineToCommandTest.as

    r3781 r3965  
    1111    public class LineToCommandTest 
    1212    { 
    13         [Test
    14         public function xまたはyが7ビットを超えているなら圧縮を実行しない():void 
     13        [Test(description="xまたはyが7ビットを超えているなら圧縮しないこと")
     14        public function shouldNotCompressIfArgsHasMoreThanSevenBits():void 
    1515        { 
    16             assert(64, -65); 
    17             assert(-65, 64); 
     16            assertCoordinates(64, -65); 
     17            assertCoordinates(-65, 64); 
    1818        } 
    1919         
    20         [Test
    21         public function xまたはyが7ビット以下であればshortに圧縮():void 
     20        [Test(description="xまたはyが7ビット以下であればshortに圧縮すること")
     21        public function shouldCompressToShortIfArgsHasUnderSevenBits():void 
    2222        { 
    23             assert(63, -64); 
    24             assert(-64, 63); 
    25             assert(4, -5); 
    26             assert(-5, 4); 
     23            assertCoordinates(63, -64); 
     24            assertCoordinates(-64, 63); 
     25            assertCoordinates(4, -5); 
     26            assertCoordinates(-5, 4); 
    2727        } 
    2828         
    29         [Test
    30         public function xまたはyが3ビット以下であればbyteに圧縮():void 
     29        [Test(description="xまたはyが3ビット以下であればbyteに圧縮すること")
     30        public function shouldCompressToByteIfArgsHasUnderThreeBits():void 
    3131        { 
    32             assert(3, -4); 
    33             assert(-4, 3); 
     32            assertCoordinates(3, -4); 
     33            assertCoordinates(-4, 3); 
    3434        } 
    3535         
    36         private function assert(x:int, y:int):void 
     36        private function assertCoordinates(x:int, y:int):void 
    3737        { 
    3838            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/MoveToCommandTest.as

    r3781 r3965  
    1010    public class MoveToCommandTest 
    1111    { 
    12         [Test
    13         public function xまたはyが7ビットを超えているなら圧縮を実行しない():void 
     12        [Test(description="xまたはyが7ビットを超えているなら圧縮しないこと")
     13        public function shouldNotCompressIfArgsHasMoreThanSevenBits():void 
    1414        { 
    15             assert(64, -65); 
    16             assert(-65, 64); 
     15            assertCoordinates(64, -65); 
     16            assertCoordinates(-65, 64); 
    1717        } 
    1818         
    19         [Test
    20         public function xまたはyが7ビット以下であればshortに圧縮():void 
     19        [Test(description="xまたはyが7ビット以下であればshortに圧縮すること")
     20        public function shouldCompressToShortIfArgsHasUnderSevenBits():void 
    2121        { 
    22             assert(63, -64); 
    23             assert(-64, 63); 
     22            assertCoordinates(63, -64); 
     23            assertCoordinates(-64, 63); 
    2424        } 
    2525         
    26         private function assert(x:int, y:int):void 
     26        private function assertCoordinates(x:int, y:int):void 
    2727        { 
    2828            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PenCommandTest.as

    r3845 r3965  
    1414    public class PenCommandTest 
    1515    { 
    16         [Test
    17         public function ペンの太さを調整():void 
     16        [Test(description="ペンの太さが正しく変更されること")
     17        public function shouldChangeThicknessCorrectly():void 
    1818        { 
    1919            test(PenCommand.THICKNESS, "thickness", 42); 
    2020        } 
    2121         
    22         [Test
    23         public function ペンの色を調整():void 
     22        [Test(description="ペンの色が正しく変更されること")
     23        public function shouldChangeColorCorrectly():void 
    2424        { 
    2525            test(PenCommand.COLOR, "color", 0xffffffff); 
    2626        } 
    2727         
    28         [Test
    29         public function ペンの透明度を調整():void 
     28        [Test(description="ペンの不透明度が正しく変更されること")
     29        public function shouldChangeAlphaCorrectly():void 
    3030        { 
    3131            test(PenCommand.ALPHA, "alpha", 0.314); 
    3232        } 
    3333         
    34         [Test
    35         public function ペンのマイター値を調整():void 
     34        [Test(description="ペンのマイター値が正しく変更されること")
     35        public function shouldChangeMiterLimitCorrectly():void 
    3636        { 
    3737            test(PenCommand.MITER_LIMIT, "miterLimit", 0.314); 
    3838        } 
    3939         
    40         [Test
    41         public function ペンのスケールモードを調整():void 
     40        [Test(description="ペンのスケールモードが正しく変更されること")
     41        public function shouldChangeScaleModeCorrectly():void 
    4242        { 
    4343            test(PenCommand.SCALE_MODE, "scaleMode", LineScaleMode.VERTICAL); 
    4444        } 
    4545         
    46         [Test
    47         public function ペンのキャップを調整():void 
     46        [Test(description="ペンのキャップモードが正しく変更されること")
     47        public function shouldChangeCapsStyleCorrectly():void 
    4848        { 
    4949            test(PenCommand.CAPS, "capsStyle", CapsStyle.SQUARE); 
    5050        } 
    5151         
    52         [Test
    53         public function ペンのジョイントを調整():void 
     52        [Test(description="ペンのジョイントを調整")
     53        public function shouldChangeJointStyleCorrectly():void 
    5454        { 
    5555            test(PenCommand.JOINTS, "jointStyle", JointStyle.BEVEL); 
    5656        } 
    5757         
    58         [Test
    59         public function ペンのピクセルヒンティングを調整():void 
     58        [Test(description="ペンのピクセルヒンティングを調整")
     59        public function shouldChangePixelHintingCorrectly():void 
    6060        { 
    6161            test(PenCommand.PIXEL_HINTING, "pixelHinting", false); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PixelCommandTest.as

    r3781 r3965  
    1111    public class PixelCommandTest 
    1212    { 
    13         [Test
    14         public function ピクセルコマンドの実行():void 
     13        [Test(description="ピクセルコマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/RedoCommandTest.as

    r3781 r3965  
    1010    public class RedoCommandTest 
    1111    { 
    12         [Test
    13         public function やり直しコマンドの実行():void 
     12        [Test(description="やり直しコマンドが正しく実行されること")
     13        public function shouldExecuteCorrectly():void 
    1414        { 
    1515            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/ResetAllCommandTest.as

    r3796 r3965  
    88    public class ResetAllCommandTest 
    99    { 
    10         [Test
    11         public function 初期化コマンドの実行():void 
     10        [Test(description="初期化コマンドが正しく実行されること")
     11        public function shouldExecuteCorrectly():void 
    1212        { 
    1313            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/UndoCommandTest.as

    r3781 r3965  
    1010    public class UndoCommandTest 
    1111    { 
    12         [Test
    13         public function 巻き戻しコマンドの実行():void 
     12        [Test(description="巻き戻しコマンドの実行")
     13        public function shouldExecuteCorrectly():void 
    1414        { 
    1515            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/VerticalMirrorCommandTest.as

    r3781 r3965  
    1111    public class VerticalMirrorCommandTest 
    1212    { 
    13         [Test
    14         public function 垂直ミラー作成コマンドの実行():void 
     13        [Test(description="垂直ミラー作成コマンドの実行")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MergeLayerCommandTest.as

    r3781 r3965  
    1111    public class MergeLayerCommandTest 
    1212    { 
    13         [Test
    14         public function レイヤー統合コマンドの実行():void 
     13        [Test(description="レイヤー統合コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MoveLayerCommandTest.as

    r3781 r3965  
    1010    public final class MoveLayerCommandTest 
    1111    { 
    12         [Test
    13         public function レイヤー移動コマンドの実行():void 
     12        [Test(description="レイヤー移動コマンドが正しく実行されること")
     13        public function shouldExecuteCorrectly():void 
    1414        { 
    1515            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/RemoveLayerCommandTest.as

    r3781 r3965  
    1111    public class RemoveLayerCommandTest 
    1212    { 
    13         [Test
    14         public function レイヤー削除コマンドの実行():void 
     13        [Test(description="レイヤー削除コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/ScaleLayerCommandTest.as

    r3781 r3965  
    1010    public final class ScaleLayerCommandTest 
    1111    { 
    12         [Test
    13         public function レイヤー拡大縮小コマンドの実行():void 
     12        [Test(description="レイヤー拡大縮小コマンドが正しく実行されること")
     13        public function shouldExecuteCorrectly():void 
    1414        { 
    1515            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerAlphaCommandTest.as

    r3781 r3965  
    1111    public class SetLayerAlphaCommandTest 
    1212    { 
    13         [Test
    14         public function レイヤーの透明度を設定するコマンドの実行():void 
     13        [Test(description="レイヤーの透明度を設定するコマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerBlendModeCommandTest.as

    r3781 r3965  
    1212    public class SetLayerBlendModeCommandTest 
    1313    { 
    14         [Test
    15         public function レイヤーのブレンドモードを設定するコマンドの実行():void 
     14        [Test(description="レイヤーのブレンドモードを設定するコマンドが正しく実行されること")
     15        public function shouldExecuteCorrectly():void 
    1616        { 
    1717            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerVisibleCommandTest.as

    r3781 r3965  
    1111    public class SetLayerVisibleCommandTest 
    1212    { 
    13         [Test
    14         public function レイヤーのインデックスを設定するコマンドの実行():void 
     13        [Test(description="レイヤーのインデックスを設定するコマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SwapLayerCommandTest.as

    r3781 r3965  
    1111    public class SwapLayerCommandTest 
    1212    { 
    13         [Test
    14         public function レイヤー交換コマンドの実行():void 
     13        [Test(description="レイヤー交換コマンドが正しく実行されること")
     14        public function shouldExecuteCorrectly():void 
    1515        { 
    1616            var bytes:ByteArray = new ByteArray(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/CircleModuleTest.as

    r3845 r3965  
    2222        } 
    2323         
    24         [Test
    25         public function CircleModuleであること():void 
     24        [Test(description="CircleModuleであること")
     25        public function shouldBeCircleModule():void 
    2626        { 
    2727            Assert.assertTrue(m_module is CircleModule); 
     
    2929        } 
    3030         
    31         [Test
    32         public function 移動せずに描画すると何も起こらないこと():void 
     31        [Test(description="移動せずに描画すると何も起こらないこと")
     32        public function shouldDoNothingWithoutMoving():void 
    3333        { 
    3434            m_module.start(1, 1); 
    3535            m_module.stop(1, 1); 
    36             ModuleTestUtil.countCommands(0, m_bytes); 
     36            ModuleTestUtil.assertCommands(0, m_bytes); 
    3737        } 
    3838         
    39         [Test
    40         public function 移動して描画すると3つのコマンドが実行されること():void 
     39        [Test(description="移動して描画すると3つのコマンドが実行されること")
     40        public function shouldExecuteThreeCommandsWithMoving():void 
    4141        { 
    4242            m_module.start(1, 1); 
    4343            m_module.move(2, 2); 
    4444            m_module.stop(3, 3); 
    45             ModuleTestUtil.countCommands(3, m_bytes); 
     45            ModuleTestUtil.assertCommands(3, m_bytes); 
    4646        } 
    4747         
    48         [Test
    49         public function 移動位置が保存されること():void 
     48        [Test(description="移動位置が保存されること")
     49        public function shouldSaveCoordinates():void 
    5050        { 
    51             ModuleTestUtil.getLineSegment(m_module, true); 
     51            ModuleTestUtil.assertLineSegment(m_module, true); 
    5252        } 
    5353         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/DropperModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function DropperModuleであること():void 
     23        [Test(description="DropperModuleであること")
     24        public function shouldBeDropperModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is DropperModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function スポイトを実行すると1つのコマンドが実行されること():void 
     30        [Test(description="スポイトを実行すると1つのコマンドが実行されること")
     31        public function shouldExecuteOneCommand():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.move(2, 2); 
    3535            m_module.stop(3, 3); 
    36             ModuleTestUtil.countCommands(1, m_bytes); 
     36            ModuleTestUtil.assertCommands(1, m_bytes); 
    3737        } 
    3838         
    39         [Test
    40         public function 移動位置が保存されること():void 
     39        [Test(description="移動位置が保存されること")
     40        public function shouldSaveCoordinates():void 
    4141        { 
    42             ModuleTestUtil.getLineSegment(m_module, false); 
     42            ModuleTestUtil.assertLineSegment(m_module, false); 
    4343        } 
    4444         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/EllipseModuleTest.as

    r3917 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function EllipseModuleであること():void 
     23        [Test(description="EllipseModuleであること")
     24        public function shouldBeEllipseModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is EllipseModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると何も起こらないこと():void 
     30        [Test(description="移動せずに描画すると何も起こらないこと")
     31        public function shouldDoNothingWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(0, m_bytes); 
     35            ModuleTestUtil.assertCommands(0, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画する():void 
     38        [Test(description="移動位置が保存されること")
     39        public function shouldSaveCoordinates():void 
    4040        { 
    41             // TODO: implement this 
    42         } 
    43          
    44         [Test] 
    45         public function 移動位置が保存されること():void 
    46         { 
    47             ModuleTestUtil.getLineSegment(m_module, true); 
     41            ModuleTestUtil.assertLineSegment(m_module, true); 
    4842        } 
    4943         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FloodFillModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function FloodFillModuleであること():void 
     23        [Test(description="FloodFillModuleであること")
     24        public function shouldBeFloodFillModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is FloodFillModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 塗潰を実行すると2つのコマンドが実行されること():void 
     30        [Test(description="塗り潰しを実行すると2つのコマンドが実行されること")
     31        public function shouldExecuteTwoCommands():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.move(2, 2); 
    3535            m_module.stop(3, 3); 
    36             ModuleTestUtil.countCommands(2, m_bytes); 
     36            ModuleTestUtil.assertCommands(2, m_bytes); 
    3737        } 
    3838         
    39         [Test
    40         public function 移動位置が保存されること():void 
     39        [Test(description="移動位置が保存されること")
     40        public function shouldSaveCoordinates():void 
    4141        { 
    42             ModuleTestUtil.getLineSegment(m_module, false); 
     42            ModuleTestUtil.assertLineSegment(m_module, false); 
    4343        } 
    4444         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FreeHandModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function FreeHandModuleであること():void 
     23        [Test(description="FreeHandModuleであること")
     24        public function shouldBeFreeHandModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is FreeHandModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると7つのコマンドが実行されること():void 
     30        [Test(description="移動せずに描画すると7つのコマンドが実行されること")
     31        public function shouldExecuteSevenCommandsWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(7, m_bytes); 
     35            ModuleTestUtil.assertCommands(7, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画すると3つのコマンドが実行されること():void 
     38        [Test(description="移動して描画すると3つのコマンドが実行されること")
     39        public function shouldExecuteThreeCommandsWithMoving():void 
    4040        { 
    4141            m_module.start(1, 1); 
    4242            m_module.move(2, 2); 
    4343            m_module.stop(3, 3); 
    44             ModuleTestUtil.countCommands(3, m_bytes); 
     44            ModuleTestUtil.assertCommands(3, m_bytes); 
    4545        } 
    4646         
    47         [Test
    48         public function 移動位置が保存されること():void 
     47        [Test(description="移動位置が保存されること")
     48        public function shouldSaveCoordinates():void 
    4949        { 
    50             ModuleTestUtil.getLineSegment(m_module, true); 
     50            ModuleTestUtil.assertLineSegment(m_module, true); 
    5151        } 
    5252         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/LineModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function LineModuleであること():void 
     23        [Test(description="LineModuleであること")
     24        public function shouldBeLineModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is LineModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると何も起こらないこと():void 
     30        [Test(description="移動せずに描画すると何も起こらないこと")
     31        public function shouldDoNothingWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(0, m_bytes); 
     35            ModuleTestUtil.assertCommands(0, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画すると3つのコマンドが実行されること():void 
     38        [Test(description="移動して描画すると3つのコマンドが実行されること")
     39        public function shouldExecuteThreeCommandsWithMoving():void 
    4040        { 
    4141            m_module.start(1, 1); 
    4242            m_module.move(2, 2); 
    4343            m_module.stop(3, 3); 
    44             ModuleTestUtil.countCommands(3, m_bytes); 
     44            ModuleTestUtil.assertCommands(3, m_bytes); 
    4545        } 
    4646         
    47         [Test
    48         public function 移動位置が保存されること():void 
     47        [Test(description="移動位置が保存されること")
     48        public function shouldSaveCoordinates():void 
    4949        { 
    50             ModuleTestUtil.getLineSegment(m_module, true); 
     50            ModuleTestUtil.assertLineSegment(m_module, true); 
    5151        } 
    5252         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/ModuleTestUtil.as

    r3605 r3965  
    4444        } 
    4545         
    46         public static function countCommands(expected:uint, bytes:ByteArray):void 
     46        public static function assertCommands(expected:uint, bytes:ByteArray):void 
    4747        { 
    4848            Assert.assertEquals(expected, getCommands(bytes).length); 
    4949        } 
    5050         
    51         public static function getLineSegment(module:ICanvasModule, checkStart:Boolean):void 
     51        public static function assertLineSegment(module:ICanvasModule, checkStart:Boolean):void 
    5252        { 
    5353            var start:Point = new Point(); 
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/PixelModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function PixelModuleであること():void 
     23        [Test(description="PixelModuleであること")
     24        public function shouldBePixelModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is PixelModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると1つのコマンドが実行されること():void 
     30        [Test(description="移動せずに描画すると1つのコマンドが実行されること")
     31        public function shouldExecuteOneCommandWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(1, m_bytes); 
     35            ModuleTestUtil.assertCommands(1, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画すると2つのコマンドが実行されること():void 
     38        [Test(description="移動して描画すると2つのコマンドが実行されること")
     39        public function shouldExecuteTwoCommandsWithMoving():void 
    4040        { 
    4141            m_module.start(1, 1); 
    4242            m_module.move(2, 2); 
    4343            m_module.stop(3, 3); 
    44             ModuleTestUtil.countCommands(2, m_bytes); 
     44            ModuleTestUtil.assertCommands(2, m_bytes); 
    4545        } 
    4646         
    47         [Test
    48         public function 移動位置が保存されること():void 
     47        [Test(description="移動位置が保存されること")
     48        public function shouldSaveCoordinates():void 
    4949        { 
    50             ModuleTestUtil.getLineSegment(m_module, false); 
     50            ModuleTestUtil.assertLineSegment(m_module, false); 
    5151        } 
    5252         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RectModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function RectModuleであること():void 
     23        [Test(description="RectModuleであること")
     24        public function shouldBeRectModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is RectModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると何も起こらないこと():void 
     30        [Test(description="移動せずに描画すると何も起こらないこと")
     31        public function shouldDoNothingWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(0, m_bytes); 
     35            ModuleTestUtil.assertCommands(0, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画すると():void 
     38        [Test(description="移動位置が保存されること")
     39        public function shouldSaveCoordinates():void 
    4040        { 
    41             // TODO: implement this 
    42         } 
    43          
    44         [Test] 
    45         public function 移動位置が保存されること():void 
    46         { 
    47             ModuleTestUtil.getLineSegment(m_module, true); 
     41            ModuleTestUtil.assertLineSegment(m_module, true); 
    4842        } 
    4943         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RoundRectModuleTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function RoundRectModuleであること():void 
     23        [Test(description="RoundRectModuleであること")
     24        public function shouldBeRoundRectModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is RoundRectModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると何も起こらないこと():void 
     30        [Test(description="移動せずに描画すると何も起こらないこと")
     31        public function shouldDoNothingWithoutMoving():void 
    3232        { 
    3333            m_module.start(1, 1); 
    3434            m_module.stop(1, 1); 
    35             ModuleTestUtil.countCommands(0, m_bytes); 
     35            ModuleTestUtil.assertCommands(0, m_bytes); 
    3636        } 
    3737         
    38         [Test
    39         public function 移動して描画すると():void 
     38        [Test(description="移動位置が保存されること")
     39        public function shouldSaveCoordinates():void 
    4040        { 
    41             // TODO: implement this 
    42         } 
    43          
    44         [Test] 
    45         public function 移動位置が保存されること():void 
    46         { 
    47             ModuleTestUtil.getLineSegment(m_module, true); 
     41            ModuleTestUtil.assertLineSegment(m_module, true); 
    4842        } 
    4943         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentFloodFillTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function TransparentFloodFillModuleであること():void 
     23        [Test(description="TransparentFloodFillModuleであること")
     24        public function shouldBeTransparentFloodFillModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is TransparentFloodFill); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 透明塗りつぶしを実行すると6つのコマンドが実行された上で色情報が復帰されること():void 
     30        [Test(description="透明塗りつぶしを実行すると6つのコマンドが実行された上で色情報が復帰されること")
     31        public function shouldExecuteSixCommandsAndRestoreColorAndAlpha():void 
    3232        { 
    3333            var pen:Pen = m_recorder.pen; 
     
    3737            m_module.move(2, 2); 
    3838            m_module.stop(3, 3); 
    39             ModuleTestUtil.countCommands(6, m_bytes); 
     39            ModuleTestUtil.assertCommands(6, m_bytes); 
    4040            Assert.assertStrictlyEquals(0.5, pen.alpha); 
    4141            Assert.assertStrictlyEquals(0x123456, pen.color); 
    4242        } 
    4343         
    44         [Test
    45         public function 途中で中断したとしても色情報が復帰されること():void 
     44        [Test(description="途中で中断したとしても色情報が復帰されること")
     45        public function shouldRestoreColorAndAlphaIfInterrupted():void 
    4646        { 
    4747            var pen:Pen = m_recorder.pen; 
     
    5050            m_module.start(1, 1); 
    5151            m_module.interrupt(2, 2); 
    52             ModuleTestUtil.countCommands(6, m_bytes); 
     52            ModuleTestUtil.assertCommands(6, m_bytes); 
    5353            Assert.assertStrictlyEquals(0.5, pen.alpha); 
    5454            Assert.assertStrictlyEquals(0x123456, pen.color); 
    5555        } 
    5656         
    57         [Test
    58         public function 移動位置が保存されること():void 
     57        [Test(description="移動位置が保存されること")
     58        public function shouldSaveCoordinates():void 
    5959        { 
    60             ModuleTestUtil.getLineSegment(m_module, false); 
     60            ModuleTestUtil.assertLineSegment(m_module, false); 
    6161        } 
    6262         
  • as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentLineTest.as

    r3845 r3965  
    2121        } 
    2222         
    23         [Test
    24         public function TransparentLineModuleであること():void 
     23        [Test(description="TransparentLineModuleであること")
     24        public function shouldBeTransparentLineModule():void 
    2525        { 
    2626            Assert.assertTrue(m_module is TransparentLineModule); 
     
    2828        } 
    2929         
    30         [Test
    31         public function 移動せずに描画すると何も起こならないがブレンドモードは復帰されること():void 
     30        [Test(description="移動せずに描画すると何も起こならないがブレンドモードは復帰されること")
     31        public function shouldDoNothingButRestoreBlendModeWithoutMoving():void 
    3232        { 
    3333            m_recorder.pen.blendMode = BlendMode.ADD; 
    3434            m_module.start(1, 1); 
    3535            m_module.stop(1, 1); 
    36             ModuleTestUtil.countCommands(0, m_bytes); 
     36            ModuleTestUtil.assertCommands(0, m_bytes); 
    3737            Assert.assertStrictlyEquals(BlendMode.ADD, m_recorder.pen.blendMode); 
    3838        } 
    3939         
    40         [Test
    41         public function 移動して描画すると5つのコマンドが実行された上でブレンドモードが復帰されること():void 
     40        [Test(description="移動して描画すると5つのコマンドが実行された上でブレンドモードが復帰されること")
     41        public function shouldExecuteFiveCommandsAndRestoreBlendModeWithMoving():void 
    4242        { 
    4343            m_recorder.pen.blendMode = BlendMode.DARKEN; 
     
    4545            m_module.move(2, 2); 
    4646            m_module.stop(3, 3); 
    47             ModuleTestUtil.countCommands(5, m_bytes); 
     47            ModuleTestUtil.assertCommands(5, m_bytes); 
    4848            Assert.assertStrictlyEquals(BlendMode.DARKEN, m_recorder.pen.blendMode); 
    4949        } 
    5050         
    51         [Test
    52         public function 移動位置が保存されること():void 
     51        [Test(description="移動位置が保存されること")
     52        public function shouldSaveCoordinates():void 
    5353        { 
    54             ModuleTestUtil.getLineSegment(m_module, true); 
     54            ModuleTestUtil.assertLineSegment(m_module, true); 
    5555        } 
    5656