Skip to content

Commit b464895

Browse files
committed
Allow the DSC test to be in a subdirectory
1 parent c61b40e commit b464895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/DscTestsPresent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeDSCResource(Ast ast, string fileName
5959
if (Directory.Exists(expectedTestsPath))
6060
{
6161
DirectoryInfo testsFolder = new DirectoryInfo(expectedTestsPath);
62-
FileInfo[] testFiles = testsFolder.GetFiles(testsQuery);
62+
FileInfo[] testFiles = testsFolder.GetFiles(testsQuery, SearchOption.AllDirectories);
6363
if (testFiles.Length != 0)
6464
{
6565
testsPresent = true;

0 commit comments

Comments
 (0)