API Reference
Class
PowerShellRuleConverter
Class to convert PowerShell rules to Testimo rules
Inheritance
- Object
- PowerShellRuleConverter
Constructors
public PowerShellRuleConverter(Boolean diagnostic = false) #Creates a converter for PowerShell-backed rules. Set diagnostic to true to emit discovery diagnostics to stderr.
Parameters
- diagnostic System.Boolean = false
- When true, emit diagnostic messages during conversion.
Methods
ConvertPowerShellFiles 2 overloads
public List<Rule> ConvertPowerShellFiles(String directoryPath) #Returns:
List<Rule>Converts all PowerShell files in the specified directory to Testimo rules
Parameters
- directoryPath System.String
public List<Rule> ConvertPowerShellFiles() #Returns:
List<Rule>Converts all PowerShell files in the assembly to Testimo rules (embedded resources as PS1)
ConvertPowerShellFilesAsync 2 overloads
public Task<List<Rule>> ConvertPowerShellFilesAsync(String directoryPath) #Returns:
Task<List<Rule>>Converts all PowerShell files in the specified directory to Testimo rules
Parameters
- directoryPath System.String
public Task<List<Rule>> ConvertPowerShellFilesAsync() #Returns:
Task<List<Rule>>Converts all PowerShell files in the assembly to Testimo rules (embedded resources as PS1)
public List<Rule> ConvertPowerShellScripts(IEnumerable<ValueTuple<String, String>> scripts) #Returns:
List<Rule>Converts an in-memory set of PowerShell scripts (name, content) into Testimo rules.
Parameters
- scripts System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String}}
- Collection of script name + content tuples.
public Task<List<Rule>> ConvertPowerShellScriptsAsync(IEnumerable<ValueTuple<String, String>> scripts) #Returns:
Task<List<Rule>>Converts an in-memory set of PowerShell scripts (name, content) into Testimo rules.
Parameters
- scripts System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String}}
- Collection of script name + content tuples.