Пример #1
0
        public void ShouldFixAllNames()
        {
            SoundEffectHolder seh = new SoundEffectHolder();
            SoundDetails      sd  = new SoundDetails();

            sd.FullPath = @"c:\Somewhere\Name Name    Other.mp3";
            seh.Add(sd);

            seh.FixNames();
            seh.Sounds[0].Name.Should().Be("Name Other");
        }
        private void ButFixNames_Click(object sender, RoutedEventArgs e)
        {
            _soundEffectHolder.FixNames();

            MainItemsList.ItemsSource = GetSoundList();
        }