Пример #1
0
        public void Succeeds()
        {
            var search = new TrueBooleanSearch("Value");

            var result = search.ApplyToQuery(Items().AsQueryable()).ToArray();

            result.Length.Should().Be(2);
        }
Пример #2
0
        public void True_Succeeds()
        {
            var search = new TrueBooleanSearch("Value")
            {
                Is = true
            };

            var result = search.ApplyToQuery(Items().AsQueryable()).ToArray();

            result.Length.Should().Be(1);
            result[0].Id.Should().Be(1);
        }