|
|
@ -169,6 +169,16 @@ namespace NzbDrone.Core.Test.Datastore
|
|
|
|
_subject.ToString().Should().Be($"((\"Movies\".\"CleanTitle\" = @Clause1_P1) AND (\"Movies\".\"Id\" IN (1, 2, 3)))");
|
|
|
|
_subject.ToString().Should().Be($"((\"Movies\".\"CleanTitle\" = @Clause1_P1) AND (\"Movies\".\"Id\" IN (1, 2, 3)))");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void where_in_string_list()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var list = new List<string> { "first", "second", "third" };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_subject = Where(x => list.Contains(x.CleanTitle));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_subject.ToString().Should().Be($"(\"Movies\".\"CleanTitle\" IN @Clause1_P1)");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void enum_as_int()
|
|
|
|
public void enum_as_int()
|
|
|
|
{
|
|
|
|
{
|
|
|
|