public void Succeeds() { var search = new OptionalBooleanSearch("Value"); var result = search.ApplyToQuery(Items().AsQueryable()).ToArray(); result.Length.Should().Be(2); }
public void True_Succeeds() { var search = new OptionalBooleanSearch("Value") { Is = true }; var result = search.ApplyToQuery(Items().AsQueryable()).ToArray(); result.Length.Should().Be(1); result[0].Id.Should().Be(1); }