# Arrange, Act, Assert

Set up, do the action, check the result.

## What is **Arrange, Act, Assert**?

**Arrange, Act, Assert** is the standard shape of a test: set things up, do the one action, check the result.

```csharp
[Fact]
public void Deposit_AddsToBalance()
{
    var account = new Account();   // Arrange
    account.Deposit(50);            // Act
    Assert.Equal(50, account.Balance); // Assert
}
```

Level: Novice · [More Unit Testing terms at this level](https://www.ask-codey.com/glossary/subjects/unit-testing/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/arrange-act-assert
