Exemple #1
0
        public void ReferenceOverFlowCheck()
        {
            var rangeStatement1 = new RangeStatement("2..10 | 51..343");

            rangeStatement1.AddStatement(new ReferenceStatement("value"));
            Assert.Throws <ArgumentOutOfRangeException>(() => rangeStatement1.AddStatement(new ReferenceStatement("value")));
        }
        public void ReferenceOverFlowCheck()
        {
            var lengthStatement1 = new RangeStatement("2323..5690");

            lengthStatement1.AddStatement(new ReferenceStatement("value"));
            Assert.Throws <ArgumentOutOfRangeException>(() => lengthStatement1.AddStatement(new ReferenceStatement("value")));
        }