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.

CodeFormattingOptions

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

Default

Gets the default TestContextOptions value.

EqualityContract
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.

References

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

RequireOrderedAspects

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

RequiresExclusivity
TempPathLength

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

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?)