public void ContainsEqualCountTest() { var query = source.AsQueryable(); var targetQuery = new List <string> { "9", "8", "7", "6", "5", "4", "3", "2" }.AsQueryable(); Assert.True(QueryableJudgement.ContainsEqualCount(query, targetQuery)); Assert.True(QueryableJudgement.ContainsEqualCount <string>(null, null)); Assert.False(QueryableJudgement.ContainsEqualCount(query, null)); Assert.False(QueryableJudgement.ContainsEqualCount(null, targetQuery)); var wrongQuery = new List <string> { "1" }.AsQueryable(); Assert.False(QueryableJudgement.ContainsEqualCount(query, wrongQuery)); }
public void ContainAtLeastTest_False(int count) { var query = source.AsQueryable(); Assert.False(QueryableJudgement.ContainsAtLeast(query, count)); }