<PackageReference Include="NUnit" Version="3.8.1" />

Assert

public class Assert
The Assert class contains a collection of static methods that implement the most common assertions used in NUnit.
/* Exception of type 'System.OutOfMemoryException' was thrown. */