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

AssertBase

public abstract class AssertBase
Base class for different Assert, containing helper functions
using System.Runtime.CompilerServices; namespace NUnit.Framework { public abstract class AssertBase { [System.Runtime.CompilerServices.NullableContext(1)] protected static string ConvertMessageWithArgs(string message, [System.Runtime.CompilerServices.Nullable(2)] object[] args) { if (args != null && args.Length != 0) return string.Format(message, args); return message; } } }