[Mono-bugs] [Bug 354397] System.IO.Directory. GetFileSystemEntries does not parse multiple paths.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 17 08:38:00 EST 2008


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

User rthijssen at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=354397#c2





--- Comment #2 from Rob Thyssen <rthijssen at gmail.com>  2008-01-17 06:37:59 MST ---
My apologies. You are correct. Multiple paths are not supported on MS.Net. I
tested with the following unit test.

using System;
using System.IO;
using NUnit.Framework;

namespace UnitTest354397
{
    [TestFixture]
    public class GetFileSystemEntriesFixture
    {
        [Test]
        public void AreMultiplePathsSupported()
        {
            bool exceptionThrown;
            try
            {
                Directory.GetFileSystemEntries(string.Format("{0}{1}{2}",
AppDomain.CurrentDomain.BaseDirectory, Path.PathSeparator,
AppDomain.CurrentDomain.BaseDirectory), "*");
                exceptionThrown = false;
            }
            catch
            {
                exceptionThrown = true;
            }
            Assert.IsFalse(exceptionThrown, "Multiple paths are not
supported.");
        }
    }
}


-- 
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