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