public void DeleteFileTest() { string filepath = "/"; string filename = @"Web services testing - episode 2.pptx"; string fullpath = filepath + filename; DeleteFiles.UploadFile(fullpath); Assert.IsTrue(GetFileInf.CheckIfFileExcists(fullpath)); DeleteFiles.DeleteFile(fullpath); Assert.IsFalse(GetFileInf.CheckIfFileExcists(fullpath)); }
public RecycleButton() { InitializeComponent(); Loaded += delegate { TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(RecycleButtonBrush); TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(RecycleButtonBrush, true); TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(RecycleButtonBrush, false); TheButton.Click += delegate { DeleteFiles.DeleteFile(Navigation.Pics[Navigation.FolderIndex], false); }; }; }
public RecycleButton() { InitializeComponent(); Loaded += delegate { TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(RecycleButtonBrush); TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(RecycleButtonBrush, true); TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(RecycleButtonBrush, false); if (!Properties.Settings.Default.DarkTheme) { AnimationHelper.LightThemeMouseEvent(this, IconBrush); } TheButton.Click += delegate { DeleteFiles.DeleteFile(false); }; }; }