MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Unit­TestingTest­Context­Options
Open sandboxFocus

TestContextOptions Class

Inheritance
System.Object
TestContextOptions
Implements
System.IEquatable<TestContextOptions>
Namespace: Metalama.Testing.UnitTesting
Assembly: Metalama.Testing.UnitTesting.dll
Syntax
public sealed class TestContextOptions : Object

Constructors

Name Description
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.

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
Timeout

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

Methods

Name Description
<Clone>$()
Equals(TestContextOptions)
Equals(Object)
GetHashCode()
ToString()

Operators

Name Description
Equality(TestContextOptions, TestContextOptions)
Inequality(TestContextOptions, TestContextOptions)