public void LoadAudioTests() { SoundDBRepository _music = new SoundDBRepository(); int expectedSoundID = 26; Map currentMap = _map.Get(mapID); //get map from database Sounds audio = _music.Get(currentMap.SoundID); //get sound from database Assert.AreEqual(expectedSoundID, audio.ID); }
public void PlayAnimalSoundTest() { AnimalDBRepository _animal = new AnimalDBRepository(); SoundDBRepository _sound = new SoundDBRepository(); int AnimalID = 2; int expectedSoundID = 6; Animal animal = _animal.Get(AnimalID); //get animal from database Sounds sound = _sound.Get(animal.SoundID); //get animal sound from database Assert.AreEqual(expectedSoundID, sound.ID); }