SimCtlTool<TSettings> Class

Summary

Base class for all AppleSimulator related tools.
Assembly
Cake.AppleSimulator.dll
Namespace
Cake.AppleSimulator.UnitTest
Base Types
graph BT Type-->Base0["Tool<TSettings>"] Type["SimCtlTool<TSettings>"] class Type type-node

Syntax

public abstract class SimCtlTool<TSettings> : Tool<TSettings> where TSettings : SimCtlSettings

Type Parameters

Name Description
TSettings The Settings type.

Constructors

Properties

Name Value Summary
Settings TSettings

Methods

Name Value Summary
CreateArgumentBuilder(TSettings) ProcessArgumentBuilder
Creates a ProcessArgumentBuilder and adds common commandline arguments.
GetAlternativeToolPaths(TSettings) IEnumerable<FilePath>
Gets alternative file paths which the tool may exist in
GetToolExecutableNames() IEnumerable<string>
Gets the possible names of the tool executable.
GetToolName() string
Gets the name of the tool.
RunAndRedirectStandardOutput(TSettings, ProcessArgumentBuilder) string
Runs the specified process, using the specified Settings/arguments and returns the process StandardOutput.
RunAndReturnTestResults(TSettings, ProcessArgumentBuilder) TestResults
Runs the specified process, using the specified Settings/arguments and returns xUnit/NUnit Test Results

Extension Methods

Name Value Summary
Dump<SimCtlTool<TSettings>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<SimCtlTool<TSettings>>(SimCtlTool<TSettings>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<SimCtlTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<SimCtlTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<SimCtlTool<TSettings>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<SimCtlTool<TSettings>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin