NotOperator
Negates the test of the constraint it wraps.
using System.Runtime.CompilerServices;
namespace NUnit.Framework.Constraints
{
public class NotOperator : PrefixOperator
{
public NotOperator()
{
left_precedence = (right_precedence = 1);
}
[System.Runtime.CompilerServices.NullableContext(1)]
public override IConstraint ApplyPrefix(IConstraint constraint)
{
return new NotConstraint(constraint);
}
}
}