Ever get annoyed by repeating the same 'using' statements in all your test files? 🧪 C# 10+ has a neat fix: global usings. Let's see how it simplifies your test projects. 👇
Typically, test files repeat references to your domain, core, or testing frameworks (`Xunit`, `Moq`, etc.). It's tedious and adds boilerplate.
With global usings, you declare those common namespaces ONCE, and they're available in all files. No more clutter at the top of every file.
Next time you start a new project or refactor an existing one, check your tests, global usings can save you hours of repetitive work.
Nov 7, 2025 · 9:05 AM UTC
