Пример #1
0
        public void overflow_causes_exception()
        {
            var c = new CheckNumber(CheckNumber.MaxValue);
            var e = Assert.Throws <ArgumentException>(() => c.Increment());

            Assert.Contains("overflow", e.Message);
        }