# Unit Test

A small automated check of one focused unit of behavior.

## What is **Unit Test** in C#?

**Unit Test** — A small automated check of one focused unit of behavior.

```csharp
class OrderCalculatorTests
{
    [Fact]
    public void TotalsAnOrder()
    {
        int total = 3 * 4;
        Assert.Equal(12, total);
    }
}
```

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

## In other subjects

- [Unit Test in Java](https://www.ask-codey.com/glossary/unit-test)
- [Unit Test in JavaScript](https://www.ask-codey.com/glossary/unit-test-javascript)
- [Unit Test in Unit Testing](https://www.ask-codey.com/glossary/unit-test-unit-testing)

Source: https://www.ask-codey.com/glossary/unit-test-c-sharp
