Esempio n. 1
0
        public void GetFiles()
        {
            Assert.AreEqual(new string[0], _sut.GetFiles(_testRoot, "*"));

            File.Create(Path.Combine(_testRoot, "a")).Close();
            File.Create(Path.Combine(_testRoot, "b")).Close();
            Directory.CreateDirectory(Path.Combine(_testRoot, "C"));

            var actuals   = _sut.GetFiles(_testRoot, "*");
            var expecteds = new[] { Path.Combine(_testRoot, "a"), Path.Combine(_testRoot, "b") };

            Assert.AreEqual(expecteds, actuals);
        }