Exemple #1
0
        public void Test4()
        {
            Concert concert = new Concert("Test", "Test", "Test", 180);
            var     except  = Assert.Throws <ArgumentOutOfRangeException>(() => concert.updatePrice(100));

            Assert.That(except.ParamName, Is.EqualTo("Your price 100 is smaller than current price 180"));
        }
Exemple #2
0
        public void Test3()
        {
            Concert concert = new Concert("Test", "Test", "Test", 180);

            Assert.IsTrue(concert.Price == 180);
            concert.updatePrice(190);
            Assert.IsTrue(concert.Price == 190);
        }