示例#1
0
        public void Succeeds()
        {
            var search = new OptionalBooleanSearch("Value");

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

            result.Length.Should().Be(2);
        }
示例#2
0
        public void True_Succeeds()
        {
            var search = new OptionalBooleanSearch("Value")
            {
                Is = true
            };

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

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