public void GetFullFilePath_fileIndex_TooLarge() { File.CreateText(_mainAppFldr.Combine("pig.wmv")).Close(); File.CreateText(_mainAppFldr.Combine("cow.wma")).Close(); _viewModel.SelectedFolder = _mainAppFldr.FolderPath; Assert.AreEqual(string.Empty, _viewModel.GetFullFilePath(2)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ private void QueueMediaFile(int rowIndex) { #if !MONO _winMediaPlayer.Ctlcontrols.stop(); _winMediaPlayer.URL = _viewModel.GetFullFilePath(rowIndex); #endif }