Open sandboxFocus

Class TestContextOptions

Inheritance
TestContextOptions
Namespace: Metalama.Testing.UnitTesting
Assembly: Metalama.Testing.UnitTesting.dll
Syntax
public record TestContextOptions : IEquatable<TestContextOptions>

Constructors

Name Description
TestContextOptions()
TestContextOptions(TestContextOptions)

Properties

Name Description
AdditionalAssemblies

Gets the set of assemblies that should be added as references to the compile-time compilation.

AdditionalMetadataReferences

Gets the list of references that will be added to compilations created in this context.

CodeFormattingOptions

Gets code formatting options that indicate how the output code should be formatted.

CompileTimeAssemblies
Default

Gets the default TestContextOptions value.

DesignTimeExtensionTypes
EqualityContract
ExtensionTypes

Gets the list of extension types given explicitly as types using Metalama.Framework.Engine.Extensibility.ITestExtensionCollector, typically through the unit test framework.

FormatCompileTimeCode

Gets a value indicating whether the compile-time code should be formatted.

FormatOutput

Gets a value indicating whether the output code should be formatted.

IgnoreUserProfileLicenses
ProjectName
Properties

Gets the set of MSBuild properties exposed to the tests.

RequireOrderedAspects

Gets a value indicating whether an error should be reported if all aspect classes are not strongly ordered.

RequiresExclusivity
RunnerServiceProvider
TempPathLength

Gets the number of characters in the temporary directory. This allows to reproduce issues linked to the length of the temp path.

TestPlugInTypes
Timeout

Gets the test timeout period, after which the CancellationToken of the TestContext is signalled.

Methods

Name Description
Equals(TestContextOptions?)
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
operator ==(TestContextOptions?, TestContextOptions?)
operator !=(TestContextOptions?, TestContextOptions?)

Extension Methods