Beispiel #1
0
        public void SnackSoundSource()
        {
            string expectedChipSoundFile  = "Sounds\\chomp.wav";
            string expectedCandySoundFile = "Sounds\\paper_tearing.wav";
            string expectedDrinkSoundFile = "Sounds\\can_pop.wav";
            string expectedGumSoundFile   = "Sounds\\chomp.wav";

            string actualChipSoundFile  = chip.PullSoundFile();
            string actualCandySoundFile = candy.PullSoundFile();
            string actualDrinkSoundFile = drink.PullSoundFile();
            string actualGumSoundFile   = gum.PullSoundFile();

            Assert.AreEqual(expectedChipSoundFile, actualChipSoundFile, "Expecting Chip sound file \"Sounds\\chomp.wav\"");
            Assert.AreEqual(expectedCandySoundFile, actualCandySoundFile, "Expecting Candy sound file \"Sounds\\paper_tearing.wav\"");
            Assert.AreEqual(expectedDrinkSoundFile, actualDrinkSoundFile, "Expecting Drink sound file \"Sounds\\can_pop.wav\"");
            Assert.AreEqual(expectedGumSoundFile, actualGumSoundFile, "Expecting Gum sound file \"Sounds\\chomp.wav\"");
        }