public void WillThrowForProhibitValues()
        {
            var input = Convert.ToChar(0x0340).ToString();
            var step  = new BidirectionalStep(
                ValueRangeTable.Create(Prohibited.C_8),
                ValueRangeTable.Create(Bidirectional.D_1),
                ValueRangeTable.Create(Bidirectional.D_2));

            Assert.Throws <ProhibitedValueException>(() => step.Run(input));
        }
        public void WillThrowForRALStringNotEndingWithRALCharacter()
        {
            var input = "" + Convert.ToChar(0x0627) + "1";
            var step  = new BidirectionalStep(
                ValueRangeTable.Create(Prohibited.C_8),
                ValueRangeTable.Create(Bidirectional.D_1),
                ValueRangeTable.Create(Bidirectional.D_2));

            Assert.Throws <BidirectionalFormatException>(() => step.Run(input));
        }
Beispiel #3
0
        public void WillThrowForProhibitedValues()
        {
            var input = $"{Convert.ToChar(0x0340)}";

            Should.Throw <ProhibitedValueException>(() => _step.Run(input));
        }