示例#1
0
        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);
        }
示例#2
0
 public XmlSoundBoard(SoundBoard originalSoundBoard)
 {
     Name   = originalSoundBoard.Name;
     Sounds = (from sound in originalSoundBoard.Sounds
               select new XmlSound(sound)).ToArray();
 }