public void Matches_returns_true_for_a_ticket_which_has_a_sprint(Ticket ticket, Sprint sprint) { // Arrange ticket.Sprint = sprint; var sut = new HasNoSprint(); // Act var result = sut.Matches(ticket); // Assert Assert.That(result, Is.False); }
public ISpecificationExpression <Ticket> ConvertToSpecification(Criterion criterion) { var predicateFunction = criterion?.Test as PredicateFunction; if (predicateFunction == null) { return(null); } var spec = new HasNoSprint(); if (predicateFunction.Inverted) { return(spec.Not()); } return(spec); }