Skip to content

Commit

Permalink
Test to show the enum array bug
Browse files Browse the repository at this point in the history
  • Loading branch information
borigas committed Aug 16, 2019
1 parent a6f2f63 commit 7c7a42a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ public void Array_InSingleItem()
Assert.Equal(@"{""selector"":{""age"":{""$in"":[20]}}}", json);
}
[Fact]
public void Array_InEnum()
{
var json = _rebels.Where(r => r.Species.In(new[] { Species.Human, Species.Droid })).ToString();
Assert.Equal(@"{""selector"":{""species"":{""$in"":[0,1]}}}", json);
}
[Fact]
public void Array_NotIn()
{
var json = _rebels.Where(r => !r.Age.In(new[] { 20, 30 })).ToString();
Expand Down

0 comments on commit 7c7a42a

Please sign in to comment.