示例#1
0
        public void BasicTests(string excepted, string inputStirng)
        {
            var kata   = new Dubstep();
            var actual = kata.SongDecoder(inputStirng);

            Assert.AreEqual(excepted, actual);
        }
示例#2
0
        public void LoadSounds()
        {
            GainOneUp                       = content.Load <SoundEffect>("smb_1-up");
            GainPowerUp                     = content.Load <SoundEffect>("smb_powerup");
            Coin                            = content.Load <SoundEffect>("smb_coin");
            CoinScore                       = content.Load <SoundEffect>("smb_coin_score");
            PowerUpAppears                  = content.Load <SoundEffect>("smb_powerup_appears");
            BlockBump                       = content.Load <SoundEffect>("smb_bump");
            BlockBreaking                   = content.Load <SoundEffect>("smb_breakblock");
            SmallJump                       = content.Load <SoundEffect>("smb_jump-small");
            BigJump                         = content.Load <SoundEffect>("smb_jump-super");
            PowerDown                       = content.Load <SoundEffect>("smb_pipe");
            EnemyStomp                      = content.Load <SoundEffect>("smb_stomp");
            EnemyKick                       = content.Load <SoundEffect>("smb_kick");
            MarioDeath                      = content.Load <SoundEffect>("smb_mariodie");
            Fireball                        = content.Load <SoundEffect>("smb_fireball");
            Flagpole                        = content.Load <SoundEffect>("smb_flagpole");
            LevelClear                      = content.Load <SoundEffect>("smb_stage_clear");
            TimeWarning                     = content.Load <SoundEffect>("smb_warning");
            TimeRunningOutOverworld         = content.Load <SoundEffect>("Overworld_Theme_Fast");
            TimeRunningOutStar              = content.Load <SoundEffect>("Star_Theme_Fast");
            WorldClear                      = content.Load <SoundEffect>("smb_world_clear");
            Fireworks                       = content.Load <SoundEffect>("smb_fireworks");
            GamePause                       = content.Load <SoundEffect>("smb_pause");
            GameOver                        = content.Load <SoundEffect>("smb_gameover");
            LevelComplete                   = content.Load <SoundEffect>("smb_level_complete");
            Star                            = content.Load <SoundEffect>("Star Theme");
            OverWorld                       = content.Load <SoundEffect>("Overworld_Theme");
            Underground                     = content.Load <SoundEffect>("smb_underground");
            YourCodeSucks                   = content.Load <SoundEffect>("YourCodeSucks");
            Laugh                           = content.Load <SoundEffect>("NormalLaugh");
            EvilLaugh                       = content.Load <SoundEffect>("EvilLaugh");
            YoshiSound                      = content.Load <SoundEffect>("YoshiSound");
            EggHatchingSound                = content.Load <SoundEffect>("EggHatchingSound");
            YoshiTongueSound                = content.Load <SoundEffect>("YoshiTongueSound");
            YoshiSwallowSound               = content.Load <SoundEffect>("YoshiSwallowSound");
            Dubstep                         = content.Load <SoundEffect>("Dubstep");
            UndergroundInstance             = Underground.CreateInstance();
            OverWorldInstance               = OverWorld.CreateInstance();
            StarInstance                    = Star.CreateInstance();
            TimeRunningOutOverworldInstance = TimeRunningOutOverworld.CreateInstance();
            TimeRunningOutStarInstance      = TimeRunningOutStar.CreateInstance();
            TimeWarningInstance             = TimeWarning.CreateInstance();
            LevelCompleteInstance           = LevelComplete.CreateInstance();
            GameOverInstance                = GameOver.CreateInstance();
            DubstepInstance                 = Dubstep.CreateInstance();

            TimeWarningInstance.IsLooped = false;
        }
示例#3
0
 public void Test16()
 {
     Assert.AreEqual("UB", Dubstep.SongDecoder("UBWUB"));
 }
示例#4
0
 public void Test15()
 {
     Assert.AreEqual("WU", Dubstep.SongDecoder("WUWUB"));
 }
示例#5
0
 public void Test14()
 {
     Assert.AreEqual("U", Dubstep.SongDecoder("U"));
 }
示例#6
0
 public void Test12()
 {
     Assert.AreEqual("WU BW UB", Dubstep.SongDecoder("WUWUBBWWUBUB"));
 }
示例#7
0
 public void Test10()
 {
     Assert.AreEqual("A B C D", Dubstep.SongDecoder("AWUBBWUBCWUBD"));
 }
示例#8
0
 public void Test18()
 {
     Assert.AreEqual("W A", Dubstep.SongDecoder("WUBWWUBAWUB"));
 }
示例#9
0
 public void Test8()
 {
     Assert.AreEqual("KSDHEMIXUJ R S H", Dubstep.SongDecoder("WUBKSDHEMIXUJWUBWUBRWUBWUBWUBSWUBWUBWUBHWUBWUBWUB"));
 }
示例#10
0
 public void Test7()
 {
     Assert.AreEqual("YYRTSMNWU C C FSYUINDWOBV F AU V JB", Dubstep.SongDecoder("WUBYYRTSMNWUWUBWUBWUBCWUBWUBWUBCWUBWUBWUBFSYUINDWOBVWUBWUBWUBFWUBWUBWUBAUWUBWUBWUBVWUBWUBWUBJB"));
 }
示例#11
0
 public void Test6()
 {
     Assert.AreEqual("O IPVCQAFWY Q XHDKCPYKCTWWY V FZ", Dubstep.SongDecoder("WUBWUBOWUBWUBWUBIPVCQAFWYWUBWUBWUBQWUBWUBWUBXHDKCPYKCTWWYWUBWUBWUBVWUBWUBWUBFZWUBWUB"));
 }
示例#12
0
 public void Test5()
 {
     Assert.AreEqual("Q QQ I WW JOPJPBRH", Dubstep.SongDecoder("QWUBQQWUBWUBWUBIWUBWUBWWWUBWUBWUBJOPJPBRH"));
 }
示例#13
0
 public void Test3()
 {
     Assert.AreEqual("JKD WBIRAQKF YE WV", Dubstep.SongDecoder("WUBJKDWUBWUBWBIRAQKFWUBWUBYEWUBWUBWUBWVWUBWUB"));
 }
示例#14
0
 public void Test20()
 {
     Assert.AreEqual("A", Dubstep.SongDecoder("WUBWUBA"));
 }
 public void Test2()
 {
     Assert.AreEqual("R L", Dubstep.SongDecoder("RWUBWUBWUBLWUB"));
 }
 public void Test1()
 {
     Assert.AreEqual("ABC", Dubstep.SongDecoder("WUBWUBABCWUB"));
 }
示例#17
0
 public void Test9()
 {
     Assert.AreEqual("A", Dubstep.SongDecoder("AWUBWUBWUB"));
 }