Skip to content

Commit

Permalink
Code formatting, and localization typos fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haplois committed Feb 16, 2022
1 parent 12c12b0 commit bdeb9d9
Show file tree
Hide file tree
Showing 18 changed files with 406 additions and 422 deletions.
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel;

using System;

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel
/// <summary>
/// Represents a loading strategy
/// </summary>
[Flags]
internal enum TestAdapterLoadingStrategy
{
/// <summary>
/// Represents a loading strategy
/// A strategy not defined, Test Platform will load adapters normally.
/// </summary>
Default = 0b0000_0000_0000_0000,

/// <summary>
/// Test Platform will only load adapters specified by /TestAdapterPath (or RunConfiguration.TestAdaptersPaths node).
/// If a specific adapter path is provided, adapter will be loaded; if a directory path is provided adapters directly in that folder will be loaded.
/// If no adapter path is specified, test run will fail.
/// This will imply /InIsolation switch and force the tests to be run in an isolated process.
/// </summary>
Explicit = 0b0000_0000_0000_0001,

/// <summary>
/// Load adapters next to source.
/// </summary>
NextToSource = 0b0000_0000_0000_0010,

/// <summary>
/// Default runtime providers inside Extensions folder will be included
/// </summary>
DefaultRuntimeProviders = 0b0000_0000_0000_0100,

/// <summary>
/// Load adapters inside Extensions folder.
/// </summary>
ExtensionsDirectory = 0b0000_0000_0000_1000,

/// <summary>
/// Directory wide searches will be recursive, this is required to be with with NextToSource or Explicit.
/// </summary>
[Flags]
internal enum TestAdapterLoadingStrategy
{
/// <summary>
/// A strategy not defined, Test Platform will load adapters normally.
/// </summary>
Default = 0b0000_0000_0000_0000,

/// <summary>
/// Test Platform will only load adapters specified by /TestAdapterPath (or RunConfiguration.TestAdaptersPaths node).
/// If a specific adapter path is provided, adapter will be loaded; if a directory path is provided adapters directly in that folder will be loaded.
/// If no adapter path is specified, test run will fail.
/// This will imply /InIsolation switch and force the tests to be run in an isolated process.
/// </summary>
Explicit = 0b0000_0000_0000_0001,

/// <summary>
/// Load adapters next to source.
/// </summary>
NextToSource = 0b0000_0000_0000_0010,

/// <summary>
/// Default runtime providers inside Extensions folder will be included
/// </summary>
DefaultRuntimeProviders = 0b0000_0000_0000_0100,

/// <summary>
/// Load adapters inside Extensions folder.
/// </summary>
ExtensionsDirectory = 0b0000_0000_0000_1000,

/// <summary>
/// Directory wide searches will be recursive, this is required to be with with NextToSource or Explicit.
/// </summary>
Recursive = 0b0001_0000_0000_0000,
}
Recursive = 0b0001_0000_0000_0000,
}
Loading

0 comments on commit bdeb9d9

Please sign in to comment.