public void IsSatisfiedBy(string input, bool expected) { var specification = new NotEmptySpecification(); bool actual = specification.IsSatisfiedBy(input); Assert.Equal(expected, actual); }
public void Using_spec() { var spec = new NotEmptySpecification() .And(new StartsWithSpecification("T")); var result = spec.IsSatisfied("Tahir"); Assert.True(result); }