public void ContainsAny_generic_one_criteria() { var entity = new xts_entity { Id = Guid.NewGuid() }; entity["xts_attribute"] = null; Assert.False(entity.ContainsAny(e => e.AttributeWithCaseChar)); Assert.True(entity.ContainsAny(e => e.xts_attribute)); }
public void ContainsAny_generic_many_criterias(Expression <Func <xts_entity, object> >[] contains, bool expected) { var entity = new xts_entity { Id = Guid.NewGuid() }; entity["xts_attribute"] = null; var actual = entity.ContainsAny(contains.First(), contains.Skip(1).ToArray()); Assert.Equal(expected, actual); }