Exemplo n.º 1
0
        public void TestGetAllProjectFilePath(string subPath, int expectedCount)
        {
            var path = string.Format(@"{0}\{1}", TestDataPath, subPath);

            var result = testee.GetAllProjectFilePath(path).ToList();

            Assert.AreEqual(expectedCount, result.Count());
            Assert.IsTrue(result.All(p => p.Contains(".csproj")));
            Assert.IsTrue(result.All(File.Exists));
        }