public void FindInSolution()
        {
            HashSet <string> results = new HashSet <string>(StringComparer.OrdinalIgnoreCase);

            TsconfigLocations.FindTsconfigsInSolution(solution, results);
            string expected1 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/tsconfig.json");
            string expected2 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/a/tsconfig.json");
            string expected3 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/b/tsconfig.json");

            Assert.AreEqual(3, results.Count);
            Assert.IsTrue(results.Contains(expected1));
            Assert.IsTrue(results.Contains(expected2));
            Assert.IsTrue(results.Contains(expected3));
        }
 public void FindInSolutionIgnorePath()
 {
     settings.IgnorePatterns = new string[] { @"\multiple\a\" };
     try
     {
         HashSet <string> results = new HashSet <string>(StringComparer.OrdinalIgnoreCase);
         TsconfigLocations.FindTsconfigsInSolution(solution, results);
         string expected1 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/tsconfig.json");
         string expected2 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/a/tsconfig.json");
         string expected3 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/b/tsconfig.json");
         Assert.AreEqual(2, results.Count);
         Assert.IsTrue(results.Contains(expected1));
         Assert.IsFalse(results.Contains(expected2));  // IsFalse test: the file has been excluded
         Assert.IsTrue(results.Contains(expected3));
     }
     finally
     {
         settings.IgnorePatterns = new string[0];
     }
 }
 public void FindInSolutionIncludeNested()
 {
     settings.IgnoreNestedFiles = false;
     try
     {
         HashSet <string> results = new HashSet <string>(StringComparer.OrdinalIgnoreCase);
         TsconfigLocations.FindTsconfigsInSolution(solution, results);
         string expected1 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/tsconfig.json");
         string expected2 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/a/tsconfig.json");
         string expected3 = Path.GetFullPath(@"../../artifacts/tsconfig/multiple/b/tsconfig.json");
         // Nested tsconfig in tsconfigEmptyTest
         string expected4 = Path.GetFullPath(@"../../artifacts/tsconfig/none/tsconfig.json");
         // C:\Source\typescript-analyzer\src\WebLinterTest\artifacts\tsconfig\none\tsconfig.json
         Assert.AreEqual(4, results.Count);
         Assert.IsTrue(results.Contains(expected1));
         Assert.IsTrue(results.Contains(expected2));
         Assert.IsTrue(results.Contains(expected3));
         Assert.IsTrue(results.Contains(expected4));
     }
     finally
     {
         settings.IgnoreNestedFiles = true;
     }
 }