コード例 #1
0
        public void MoveTrack(int dropIndex, string trackName)
        {
            if (dropIndex < 0 && dropIndex >= _trackCollection.Count)
            {
                Notify();
                return;
            }

            var track = _trackCollection.Search(trackName);

            _trackCollection.Remove(track);
            _trackCollection.Insert(dropIndex, track);
        }
コード例 #2
0
        public void TestSearch()
        {
            var originalCollection = new TrackCollection {
                _testTrack
            };
            var extractedTrack = originalCollection.Search(_testTrack.Path);

            Assert.AreSame(_testTrack, extractedTrack);
        }