public void TestWhereIfNotEmpty_7() { Expression <Func <Sample, bool> > condition = t => t.Email.Contains("a") && t.IntValue == 1; AssertHelper.Throws <InvalidOperationException>(() => { _builder.WhereIfNotEmpty <Sample>(condition); }, string.Format(LibraryResource.OnlyOnePredicate, condition)); }