From 7547869b293c0eb8bc75d4edbe998aad5a776aea Mon Sep 17 00:00:00 2001 From: Amit Bergman <38046493+Amitbergman@users.noreply.github.com> Date: Sun, 14 Mar 2021 13:09:47 +0200 Subject: [PATCH] Update DetectionTemplateSchemaValidationTests.cs --- .../DetectionTemplateSchemaValidationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs b/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs index dc22710aa9..ea97857635 100644 --- a/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs +++ b/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs @@ -75,7 +75,7 @@ namespace Kqlvalidations.Tests var yamlFiles = Directory.GetFiles(detectionPath, "*.yaml", SearchOption.AllDirectories).ToList(); var AllFiles = Directory.GetFiles(detectionPath,"*", SearchOption.AllDirectories).ToList(); var numberOfNotYamlFiles = 1; //This is the readme.md file in the directory - Assert.True(AllFiles.Count == yamlFiles.Count + numberOfNotYamlFiles); + Assert.True(AllFiles.Count == yamlFiles.Count + numberOfNotYamlFiles, "All the files in detections folder are supposed to end with .yaml"); } private string GetYamlFileAsString(string detectionsYamlFileName)