SeanKilleen/Sieve.NET — pull request #43 by SeanKilleen (2014-06-02 14:23:59+00:00)
Title: ForAdditionalValues now accepts IEnumerable<string>

This resolves #38.

An example unit test to demonstrate functionality:

var stringValuesToTry = new List { "1", "3" };
var valuesToTry = new List { 1, 3 };

var sut = new EqualitySieve().ForProperty(x => x.AnInt)
.ForAdditionalValues(stringValuesToTry);

sut.AcceptableValues.Should().BeEquivalentTo(valuesToTry);

var compiled = sut.ToCompiledExpression();
compiled.Invoke(ABusinessObjectWithAnIntOf1).Should().BeTrue();
compiled.Invoke(ABusinessObjectWithAnIntOf2).Should().BeFalse();
compiled.Invoke(ABusinessObjectWithAnIntOf3).Should().BeTrue();