[Mono-bugs] [Bug 378229] New: File.Delete on read-only file should throw System. UnauthorizedAccessException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 9 03:56:04 EDT 2008


           Summary: File.Delete on read-only file should throw
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: albright at wesay.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

public class FileDelete
    string file;
    public void Setup()
        file = Path.GetTempFileName();

    public void TearDown()
        if (File.Exists(file))
            File.SetAttributes(file, FileAttributes.Normal);

    public void FileDelete_FileIsReadOnly_Throws()
        File.SetAttributes(file, FileAttributes.ReadOnly);


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list