private void DeleteFileDtn_Click(object sender, RoutedEventArgs e) { FileModel file = new FileModel(); file.fileName = this.NameFileTb.Text; var items = this.FilesListBox.Items; this.FilesListBox.SelectedItem = items[0]; Thread.Sleep(1000); FileSystem.Delete(file); }
public void Delet_NullOrEmpty_Test(string path, string type) { var json = controller.Delete(path, type); Assert.IsTrue(json is System.Web.Mvc.EmptyResult); }