public void RemoveSoundBoardCommandExecute__RemovesSelectedSoundBoardFromSoundsBoard() { //Arrange SoundBoard.Model.SoundBoard soundBoardToRemove = new SoundBoard.Model.SoundBoard(); Target = CreateTarget(); Target.SoundBoards.Add(soundBoardToRemove); Target.SelectedSoundBoard = soundBoardToRemove; //Act Target.Commands.RemoveSoundBoardCommand.Execute(soundBoardToRemove); //Assert Target.SoundBoards.Should().NotContain(soundBoardToRemove); }
public XmlSoundBoard(SoundBoard originalSoundBoard) { Name = originalSoundBoard.Name; Sounds = (from sound in originalSoundBoard.Sounds select new XmlSound(sound)).ToArray(); }