Discussed in #3116
Originally posted by SteveBush January 4, 2025
On mobile platforms like Android, assets (embedded files) are opened as streams. The suggestion is to pull out the test assembly configuration Json parsing code in the method:
static bool LoadFile(TestAssemblyConfiguration configuration, string configFileName, List<string>? warnings)
Into another method:
static bool LoadFromJson(TestAssemblyConfiguration configuration, string jsonText, List<string>? warnings)
Alternatively, move the Json parsing code to TestAssemblyConfiguration and add methods to LoadFromJson and SaveToJson.
Discussed in #3116
Originally posted by SteveBush January 4, 2025
On mobile platforms like Android, assets (embedded files) are opened as streams. The suggestion is to pull out the test assembly configuration Json parsing code in the method:
static bool LoadFile(TestAssemblyConfiguration configuration, string configFileName, List<string>? warnings)Into another method:
static bool LoadFromJson(TestAssemblyConfiguration configuration, string jsonText, List<string>? warnings)Alternatively, move the Json parsing code to TestAssemblyConfiguration and add methods to LoadFromJson and SaveToJson.