public void TypeBinaryExpressionScenarioShouldFail()
        {
            List<object> objects = new List<object> { "1", 1 };

            Verify.ShouldFail(() =>
            objects.ShouldAllBe(x => x is string, "Some additional context"),

            errorWithSource:
            @"objects
            should satisfy the condition
            (x Is String)
            but
            [1]
            do not

            Additional Info:
            Some additional context",

            errorWithoutSource:
            @"[""1"", 1]
            should satisfy the condition
            (x Is String)
            but
            [1]
            do not

            Additional Info:
            Some additional context");
        }
        public void ShouldAllBe()
        {
            DocExampleWriter.Document(() =>
            {
                var mrBurns = new Person() { Name = "Mr.Burns", Salary = 3000000 };
                var kentBrockman = new Person() { Name = "Homer", Salary = 3000000 };
                var homer = new Person() { Name = "Homer", Salary = 30000 };
                var millionares = new List<Person>() { mrBurns, kentBrockman, homer };

                millionares.ShouldAllBe(m => m.Salary > 1000000);
            }, _testOutputHelper);
        }
        public void WhenGettingAnyIntegerExceptASetOfIntegers_ThenReturnDifferentIntegersExceptTheGivenIntegersEveryTime()
        {
            var generated = new List<int>();

            for (var i = 0; i < 1000; i++)
            {
                var integer = Any.IntegerExcept(1, 5, 200, 356, 4, 53);
                generated.Add(integer);
            }

            generated.ShouldAllBe(i => i != 1
                && i != 5
                && i != 200
                && i != 356
                && i != 4
                && i != 53);
            generated.Distinct().Count()
                .ShouldBe(generated.Count);
        }