| File: RunSettingsManager.cs | Web Access |
| Project: src\vstest\src\Microsoft.TestPlatform.Common\Microsoft.TestPlatform.Common.csproj (Microsoft.VisualStudio.TestPlatform.Common) |
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; namespace Microsoft.VisualStudio.TestPlatform.Common; /// <summary> /// Manages the active run settings. /// </summary> internal class RunSettingsManager : IRunSettingsProvider { /// <summary> /// Default constructor. /// </summary> internal RunSettingsManager() { ActiveRunSettings = new RunSettings(); } #region IRunSettingsProvider /// <summary> /// Gets the active run settings. /// </summary> public RunSettings ActiveRunSettings { get; private set; } #endregion /// <summary> /// Set the active run settings. /// </summary> /// <param name="runSettings">RunSettings to make the active Run Settings.</param> public void SetActiveRunSettings(RunSettings runSettings) { ActiveRunSettings = runSettings ?? throw new ArgumentNullException(nameof(runSettings)); } }