Пример #1
0
        public void Test6()
        {
            TicketID ticketid = new TicketID(4, 39M);
            var      except   = Assert.Throws <ArgumentOutOfRangeException>(() => ticketid.updatePrice(9));

            Assert.That(except.ParamName, Is.EqualTo("Your price 9 is smaller than current price 39"));
        }
Пример #2
0
        public void Test5()
        {
            TicketID ticketid = new TicketID(4, 14M);

            Assert.IsTrue(ticketid.getID() == 4);
            ticketid.updatePrice(15);
            Assert.IsFalse(ticketid.getID() == 15);
        }