https://bugzilla.novell.com/show_bug.cgi?id=676798

https://bugzilla.novell.com/show_bug.cgi?id=676798#c0


           Summary: Directory.GetDirectories with slash returns incorrect
                    list
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development
           Blocker: No


[Test]
public void Method_Condition_Result()
{
    try
    {
        Directory.CreateDirectory(@".\tmp\folder");
        string[] directories = Directory.GetDirectories(@"./tmp/");

        //Expected: "./tmp/folder"
        //But was:  ".\\folder"
        Assert.AreEqual(@"./tmp/folder", directories[0]);
    }
    finally
    {
        Directory.Delete(@".\tmp\", true);
    }
}



Actual Results:
".\\folder"

Expected Results:
"./tmp/folder"

How often does this happen? 
Every time.

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to