public AppRunner(IProcessManager processManager, IHardwareDeviceLoader hardwareDeviceLoader, ISimulatorLoader simulatorLoader, ISimpleListenerFactory simpleListenerFactory, ICrashSnapshotReporterFactory snapshotReporterFactory, ICaptureLogFactory captureLogFactory, IDeviceLogCapturerFactory deviceLogCapturerFactory, ITestReporterFactory reporterFactory, ILog mainLog, ILogs logs, IHelpers helpers, bool useXmlOutput) { _processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); _hardwareDeviceLoader = hardwareDeviceLoader ?? throw new ArgumentNullException(nameof(hardwareDeviceLoader)); _simulatorLoader = simulatorLoader ?? throw new ArgumentNullException(nameof(simulatorLoader)); _listenerFactory = simpleListenerFactory ?? throw new ArgumentNullException(nameof(simpleListenerFactory)); _snapshotReporterFactory = snapshotReporterFactory ?? throw new ArgumentNullException(nameof(snapshotReporterFactory)); _captureLogFactory = captureLogFactory ?? throw new ArgumentNullException(nameof(captureLogFactory)); _deviceLogCapturerFactory = deviceLogCapturerFactory ?? throw new ArgumentNullException(nameof(deviceLogCapturerFactory)); _testReporterFactory = reporterFactory ?? throw new ArgumentNullException(nameof(_testReporterFactory)); _mainLog = mainLog ?? throw new ArgumentNullException(nameof(mainLog)); _logs = logs ?? throw new ArgumentNullException(nameof(logs)); _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); _useXmlOutput = useXmlOutput; }
public AppRunner(IMLaunchProcessManager processManager, IHardwareDeviceLoader hardwareDeviceLoader, ISimulatorLoader simulatorLoader, ISimpleListenerFactory simpleListenerFactory, ICrashSnapshotReporterFactory snapshotReporterFactory, ICaptureLogFactory captureLogFactory, IDeviceLogCapturerFactory deviceLogCapturerFactory, ITestReporterFactory reporterFactory, IFileBackedLog mainLog, ILogs logs, IHelpers helpers, bool useXmlOutput, Action <string>?logCallback = null) { _processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); _hardwareDeviceLoader = hardwareDeviceLoader ?? throw new ArgumentNullException(nameof(hardwareDeviceLoader)); _simulatorLoader = simulatorLoader ?? throw new ArgumentNullException(nameof(simulatorLoader)); _listenerFactory = simpleListenerFactory ?? throw new ArgumentNullException(nameof(simpleListenerFactory)); _snapshotReporterFactory = snapshotReporterFactory ?? throw new ArgumentNullException(nameof(snapshotReporterFactory)); _captureLogFactory = captureLogFactory ?? throw new ArgumentNullException(nameof(captureLogFactory)); _deviceLogCapturerFactory = deviceLogCapturerFactory ?? throw new ArgumentNullException(nameof(deviceLogCapturerFactory)); _testReporterFactory = reporterFactory ?? throw new ArgumentNullException(nameof(_testReporterFactory)); _logs = logs ?? throw new ArgumentNullException(nameof(logs)); _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); _useXmlOutput = useXmlOutput; if (logCallback == null) { _mainLog = mainLog ?? throw new ArgumentNullException(nameof(mainLog)); } else { // create using the main as the default log _mainLog = Log.CreateReadableAggregatedLog(mainLog, new CallbackLog(logCallback)); } }
private readonly IEnumerable <string> _appArguments; // Arguments that will be passed to the iOS application public AppRunner( IMlaunchProcessManager processManager, IHardwareDeviceLoader hardwareDeviceLoader, ISimulatorLoader simulatorLoader, ICrashSnapshotReporterFactory snapshotReporterFactory, ICaptureLogFactory captureLogFactory, IDeviceLogCapturerFactory deviceLogCapturerFactory, IExitCodeDetector exitCodeDetector, IFileBackedLog mainLog, ILogs logs, IHelpers helpers, IEnumerable <string> appArguments, Action <string>?logCallback = null) : base(hardwareDeviceLoader, mainLog, logCallback) { _processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); _simulatorLoader = simulatorLoader ?? throw new ArgumentNullException(nameof(simulatorLoader)); _snapshotReporterFactory = snapshotReporterFactory ?? throw new ArgumentNullException(nameof(snapshotReporterFactory)); _captureLogFactory = captureLogFactory ?? throw new ArgumentNullException(nameof(captureLogFactory)); _deviceLogCapturerFactory = deviceLogCapturerFactory ?? throw new ArgumentNullException(nameof(deviceLogCapturerFactory)); _exitCodeDetector = exitCodeDetector ?? throw new ArgumentNullException(nameof(exitCodeDetector)); _logs = logs ?? throw new ArgumentNullException(nameof(logs)); _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); _appArguments = appArguments; }
private readonly IEnumerable <string> _appArguments; // Arguments that will be passed to the iOS application public AppTester( IMlaunchProcessManager processManager, IHardwareDeviceLoader hardwareDeviceLoader, ISimulatorLoader simulatorLoader, ISimpleListenerFactory simpleListenerFactory, ICrashSnapshotReporterFactory snapshotReporterFactory, ICaptureLogFactory captureLogFactory, IDeviceLogCapturerFactory deviceLogCapturerFactory, ITestReporterFactory reporterFactory, IResultParser resultParser, IFileBackedLog mainLog, ILogs logs, IHelpers helpers, IEnumerable <string> appArguments, Action <string>?logCallback = null) : base(processManager, hardwareDeviceLoader, captureLogFactory, logs, mainLog, logCallback) { _processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); _simulatorLoader = simulatorLoader ?? throw new ArgumentNullException(nameof(simulatorLoader)); _listenerFactory = simpleListenerFactory ?? throw new ArgumentNullException(nameof(simpleListenerFactory)); _snapshotReporterFactory = snapshotReporterFactory ?? throw new ArgumentNullException(nameof(snapshotReporterFactory)); _captureLogFactory = captureLogFactory ?? throw new ArgumentNullException(nameof(captureLogFactory)); _deviceLogCapturerFactory = deviceLogCapturerFactory ?? throw new ArgumentNullException(nameof(deviceLogCapturerFactory)); _testReporterFactory = reporterFactory ?? throw new ArgumentNullException(nameof(_testReporterFactory)); _resultParser = resultParser ?? throw new ArgumentNullException(nameof(resultParser)); _mainLog = mainLog ?? throw new ArgumentNullException(nameof(mainLog)); _logs = logs ?? throw new ArgumentNullException(nameof(logs)); _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); _appArguments = appArguments; }
public AppRunnerFactory( IMlaunchProcessManager processManager, ICrashSnapshotReporterFactory snapshotReporterFactory, ICaptureLogFactory captureLogFactory, IDeviceLogCapturerFactory deviceLogCapturerFactory, IHelpers helpers) { _processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); _snapshotReporterFactory = snapshotReporterFactory ?? throw new ArgumentNullException(nameof(snapshotReporterFactory)); _captureLogFactory = captureLogFactory ?? throw new ArgumentNullException(nameof(captureLogFactory)); _deviceLogCapturerFactory = deviceLogCapturerFactory ?? throw new ArgumentNullException(nameof(deviceLogCapturerFactory)); _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); }