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")); }
public void Test5() { TicketID ticketid = new TicketID(4, 14M); Assert.IsTrue(ticketid.getID() == 4); ticketid.updatePrice(15); Assert.IsFalse(ticketid.getID() == 15); }
public void Test8() { TicketID ticketid = new TicketID(10, 0.1M); Assert.That(ticketid.ToString(), Is.EqualTo("10, 0,1, False")); }
public void Test1() { TicketID ticketid = new TicketID(4, 39M); Assert.IsFalse(ticketid.Presence()); }