Test Framework
Edit & play mode tests.
What is Test Framework
The Unity Test Framework runs NUnit-based edit-mode and play-mode tests from the Test Runner window.
Install
com.unity.test-frameworkUsage
[Test]
public void Adds() => Assert.AreEqual(4, 2 + 2);Docs
Official documentation: Test Framework.