public static IEnumerable <string[]> FindSolutionFiles()
 {
     // set field here to prevent initialization error when path is not found
     if (_slnFinder == null)
     {
         _slnFinder = new SolutionFinder(RepositoryRoot, OrderBy.Alphabetical);
     }
     return(_slnFinder.GetTestData());
 }
예제 #2
0
        public void ShouldCreateTestData()
        {
            CreateSolutions("a.sln", "z.sln", "c\\c.sln", "B\\A\\x.sln");
            var actual   = _sut.GetTestData();
            var expected = new[]
            {
                new[] { "0000", "a.sln" },
                new[] { "0001", "B\\A\\x.sln" },
                new[] { "0002", "c\\c.sln" },
                new[] { "0003", "z.sln" }
            };

            CollectionAssert.AreEqual(expected, actual);
        }