public void BasicTests(string excepted, string inputStirng) { var kata = new Dubstep(); var actual = kata.SongDecoder(inputStirng); Assert.AreEqual(excepted, actual); }
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; }
public void Test16() { Assert.AreEqual("UB", Dubstep.SongDecoder("UBWUB")); }
public void Test15() { Assert.AreEqual("WU", Dubstep.SongDecoder("WUWUB")); }
public void Test14() { Assert.AreEqual("U", Dubstep.SongDecoder("U")); }
public void Test12() { Assert.AreEqual("WU BW UB", Dubstep.SongDecoder("WUWUBBWWUBUB")); }
public void Test10() { Assert.AreEqual("A B C D", Dubstep.SongDecoder("AWUBBWUBCWUBD")); }
public void Test18() { Assert.AreEqual("W A", Dubstep.SongDecoder("WUBWWUBAWUB")); }
public void Test8() { Assert.AreEqual("KSDHEMIXUJ R S H", Dubstep.SongDecoder("WUBKSDHEMIXUJWUBWUBRWUBWUBWUBSWUBWUBWUBHWUBWUBWUB")); }
public void Test7() { Assert.AreEqual("YYRTSMNWU C C FSYUINDWOBV F AU V JB", Dubstep.SongDecoder("WUBYYRTSMNWUWUBWUBWUBCWUBWUBWUBCWUBWUBWUBFSYUINDWOBVWUBWUBWUBFWUBWUBWUBAUWUBWUBWUBVWUBWUBWUBJB")); }
public void Test6() { Assert.AreEqual("O IPVCQAFWY Q XHDKCPYKCTWWY V FZ", Dubstep.SongDecoder("WUBWUBOWUBWUBWUBIPVCQAFWYWUBWUBWUBQWUBWUBWUBXHDKCPYKCTWWYWUBWUBWUBVWUBWUBWUBFZWUBWUB")); }
public void Test5() { Assert.AreEqual("Q QQ I WW JOPJPBRH", Dubstep.SongDecoder("QWUBQQWUBWUBWUBIWUBWUBWWWUBWUBWUBJOPJPBRH")); }
public void Test3() { Assert.AreEqual("JKD WBIRAQKF YE WV", Dubstep.SongDecoder("WUBJKDWUBWUBWBIRAQKFWUBWUBYEWUBWUBWUBWVWUBWUB")); }
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")); }
public void Test9() { Assert.AreEqual("A", Dubstep.SongDecoder("AWUBWUBWUB")); }