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

EmptyStringConstraint

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