Table of Contents

Interface ICodeGenTestCase

Namespace
Xunit.v3
Assembly
xunit.v3.core.aot.dll

Represents a test case from xUnit.net v3.

public interface ICodeGenTestCase : ICoreTestCase, ITestCase, ITestCaseMetadata
Inherited Members
Extension Methods
Xunit.Sdk.MessageSinkMessageExtensions.ToTestCaseDiscovered(Xunit.Sdk.ITestCase)

Remarks

This interface is used for code generation-based tests.

Properties

SkipUnless

If this is set and it returns false, the test will be skipped.

SkipWhen

If this is set and it returns true, the test will be skipped.

TestClass

Gets the test class that this test case belongs to.

TestCollection

Gets the test collection this test case belongs to.

TestMethod

Gets the test method this test case belongs to.

Methods

CreateTests()

Creates the tests that are emitted from this test case. Exceptions thrown here will be caught and converted into a test case failure.