# 测试结构

{% hint style="info" %}
对应的[官方页面地址](https://contributing.bitwarden.com/contributing/testing/unit/structure)
{% endhint %}

{% hint style="warning" %}
本章节仍在编写中。
{% endhint %}

常用的惯例是 AAA: Arrange Act Assert（排列行为断言）。这种类型的约定使阅读/理解测试变得更容易，同时也能促进更好的测试。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ppgg.in/contributing/testing/unit/structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
