示例#1
0
        public void TestExcessiveWhitespace()
        {
            var ArgumentParser = new SauronEye.ArgumentParser();
            var input          = new string[12] {
                @"-Dirs", @" ", " ", @"C:\,      ", @"  ", @"D:", @"-FILETYPES", @".txt,.bat", @"      ", @",.conf", "-Contents", "-keywords test"
            };
            var expected = new List <string>()
            {
                @"c:\", @"d:"
            };

            ArgumentParser.ParseArguments(input);
            CollectionAssert.AreEqual(ArgumentParser.Directories, expected);
        }