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); }
public void TestSearch() { var originalCollection = new TrackCollection { _testTrack }; var extractedTrack = originalCollection.Search(_testTrack.Path); Assert.AreSame(_testTrack, extractedTrack); }