public void OrTest() { //arrange var filter = new CompositeKindFilter { Int1 = 1, Int2 = 1 }; //act var filtered = CompositeKindTestsData.Items.AutoFilter(filter, ComposeKind.Or).ToList(); //assert Assert.Equal(3, filtered.Count); }
public void AndTest() { //arrange Init(); var filter = new CompositeKindFilter { Int1 = 1, Int2 = 1 }; //act var filtered = Context.CompositeKindItems.AutoFilter(filter, ComposeKind.And).ToList(); //assert Assert.Equal(1, filtered.Count); }