Exemple #1
0
        public void WhenAnyCharacterCalled()
        {
            _minValue = 'd';
            _maxValue = 'x';

            _returnedValue = Any.Character(_minValue, _maxValue);
        }
Exemple #2
0
        public void WhenAnyCharacterCalled()
        {
            _minValue = 'A';
            _maxValue = 'z';

            _returnedValue = Any.Character();
        }
Exemple #3
0
        public void ThenArgumentOutOfRangeExceptionIsThrown()
        {
            try
            {
                Any.Character(_minValue, _maxValue);
            }
            catch (ArgumentOutOfRangeException argumentOutOfRangeException)
            {
                Assert.Pass();
            }

            Assert.Fail("Expected exception not thrown");
        }