schemas/skills/SchemaManifestTests/ValidateSchemaTests.cs
/// <summary>
/// Builds the list of manifest schemas and samples to validate from the file system.
/// </summary>
Builds the list of manifest schemas and samples to validate from the file system.
Builds the list of manifest schemas and samples to validate from the file system .
public static TheoryData<string, string> GetManifestAndSamples()
        {
            var manifestAndSamples = new TheoryData<string, string>();
            foreach (var schemaVersion in _schemaVersionFolders)
            {
                var schemaFolder = Path.Combine(_schemasRootFolder, schemaVersion);
                var samplesFolder = Path.Combine(schemaFolder, "Samples");
                var sampleManifestFiles = Directory.GetFileSystemEntries(samplesFolder, "*.json", SearchOption.AllDirectories);
                foreach (var manifestFile in sampleManifestFiles)
                {
                    var manifestRelativePath = Path.GetRelativePath(schemaFolder, manifestFile);
                    manifestAndSamples.Add(schemaVersion, manifestRelativePath);
                }
            }
            return manifestAndSamples;
        }
public static TheoryData < string , string > GetManifestAndSamples ( ) { var manifestAndSamples = new TheoryData < string , string > ( ) ; foreach ( var schemaVersion in _schemaVersionFolders ) { var schemaFolder = Path . Combine ( _schemasRootFolder , schemaVersion ) ; var samplesFolder = Path . Combine ( schemaFolder , " " ) ; var sampleManifestFiles = Directory . GetFileSystemEntries ( samplesFolder , " " , SearchOption . AllDirectories ) ; foreach ( var manifestFile in sampleManifestFiles ) { var manifestRelativePath = Path . GetRelativePath ( schemaFolder , manifestFile ) ; manifestAndSamples . Add ( schemaVersion , manifestRelativePath ) ; } } return manifestAndSamples ; }
Builds the list of manifest schemas and samples to validate from the file system.
Builds the list of manifest schemas and samples to validate from the file system .