Exemplo n.º 1
0
        public void FindsSolutions_Random()
        {
            _sut = new SolutionFinder(_dir, OrderBy.Random);

            var alphabetical = Lists.NewList <string>();

            for (var i = 0; i < 30; i++)
            {
                var sln = "S{0:0000}.sln".FormatEx(i);
                CreateSolution(sln);
                alphabetical.Add(sln);
            }

            var actual = _sut.Solutions.ToArray();

            CollectionAssert.AreNotEqual(alphabetical, actual);
            CollectionAssert.AreEquivalent(alphabetical, actual);
        }
Exemplo n.º 2
0
 public void PathDoesNotExist()
 {
     _sut = new SolutionFinder("C:\\doesNotExist\\", OrderBy.Alphabetical);
 }
Exemplo n.º 3
0
 public void TrailingSlashIsCorrected()
 {
     _sut = new SolutionFinder("C:\\Windows", OrderBy.Alphabetical);
     Assert.IsTrue(_sut.Root.EndsWith("\\"));
 }
Exemplo n.º 4
0
 public void Setup()
 {
     _dir = CreateTempDir();
     _sut = new SolutionFinder(_dir, OrderBy.Alphabetical);
 }