Beispiel #1
0
        public void OldExceptionFiltering()
        {
            var sharp = new OldSharp();

            var customer = sharp.GetCustomerById(0, false);

            Assert.That(customer, Is.Null);

            Assert.Throws<ArgumentException>(() => customer = sharp.GetCustomerById(0, true));
        }