Esempio n. 1
0
        public void No_Arg_All_Values_Are_Between_Zero_And_MaxValue()
        {
            var chars = new char[Assertion.Amount];

            for (var i = 0; i < Assertion.Amount; i++)
            {
                chars[i] = CharProvider.Char();
            }

            chars.AssertNotAllValuesAreTheSame();
            Assert.True(
                chars.All(x => x >= 0),
                "chars.All(x => x >= 0 && x < char.MaxValue)"
                );
        }
Esempio n. 2
0
        public void All_Values_Are_Between_Zero_And_Max()
        {
            var chars = new char[Assertion.Amount];

            const char max = 'z';

            for (var i = 0; i < Assertion.Amount; i++)
            {
                chars[i] = CharProvider.Char(max);
            }

            chars.AssertNotAllValuesAreTheSame();
            Assert.True(
                chars.All(x => x >= 0 && x <= max),
                "chars.All(x => x >= 0 && x <= max)"
                );
        }