public void TestSchemaLoader() { Action createAssemblyFunc = () => TestSchemaCache.CreateFromFilePaths( filePaths: Directory.EnumerateFiles( path: "schemas", searchPattern: "*.json", searchOption: SearchOption.AllDirectories)); createAssemblyFunc.Should().NotThrow(); }
/// <summary> /// Initializes the schema cache from a set of file paths. /// </summary> /// <param name="filePaths">The file paths to load.</param> public static INormalizedSchemaCache CreateFromFilePaths(IEnumerable <string> filePaths) { var schemaResults = TestSchemaCache.BuildSchemaCacheFromFilePaths(filePaths); return(new TestSchemaCache(schemaResults)); }