예제 #1
0
        public void RacunajPoeneTest_PriPozivu_ReturnPoeni(int brzina, int points)
        {
            TrkackiPoeni t      = new TrkackiPoeni();
            var          result = t.RacunajPoene(brzina);

            Assert.That(result, Is.EqualTo(points));
        }
예제 #2
0
        public void RacunajPoeneTest_BrzinaVanGranica_ThrowArugmentOutOfRangeException(int brzina)
        {
            TrkackiPoeni t = new TrkackiPoeni();

            Assert.That(() => t.RacunajPoene(brzina), Throws.Exception.TypeOf <ArgumentOutOfRangeException>());
        }