3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class TestCase : IMessage<TestCase>, IEquatable<TestCase>, IDeepCloneable<TestCase>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class TestCase.

Represents a test case.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TestCase

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TestCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.TestCase.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TestCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.TestCase.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TestCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.TestCase.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### TestCase()

    public TestCase()

### TestCase(TestCase)

    public TestCase(TestCase other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `TestCase` |

## Properties

### CreationTime

    public Timestamp CreationTime { get; set; }

Output only. When the test was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DisplayName

    public string DisplayName { get; set; }

Required. The human-readable name of the test case, unique within the
agent. Limit of 200 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LastTestResult

    public TestCaseResult LastTestResult { get; set; }

The latest test result.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TestCaseResult` |   |

### Name

    public string Name { get; set; }

The unique identifier of the test case.
\[TestCases.CreateTestCase\]\[google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase\]
will populate the name automatically. Otherwise use format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Notes

    public string Notes { get; set; }

Additional freeform notes about the test case. Limit of 400 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Tags

    public RepeatedField<string> Tags { get; }

Tags are short descriptions that users may apply to test cases for
organizational and filtering purposes. Each tag should start with "#" and
has a limit of 30 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### TestCaseConversationTurns

    public RepeatedField<ConversationTurn> TestCaseConversationTurns { get; }

The conversation turns uttered when the test case was created, in
chronological order. These include the canonical set of agent utterances
that should occur when the agent is working properly.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldConversationTurn` |   |

### TestCaseName

    public TestCaseName TestCaseName { get; set; }

[TestCaseName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.TestCaseName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.TestCase.md.txt#Google_Cloud_Dialogflow_Cx_V3_TestCase_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TestCaseName` |   |

### TestConfig

    public TestConfig TestConfig { get; set; }

Config for the test case.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TestConfig` |   |