Example #1
0
        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);
        }
Example #2
0
        public void Delet_NullOrEmpty_Test(string path, string type)
        {
            var json = controller.Delete(path, type);

            Assert.IsTrue(json is System.Web.Mvc.EmptyResult);
        }