EmptyStringConstraint
EmptyStringConstraint tests whether a string is empty.
using System.Runtime.CompilerServices;
namespace NUnit.Framework.Constraints
{
[NullableContext(1)]
[Nullable(0)]
public class EmptyStringConstraint : StringConstraint
{
public override string Description => "<empty>";
[NullableContext(2)]
protected override bool Matches(string actual)
{
return actual == string.Empty;
}
}
}