public void RacunajPoeneTest_PriPozivu_ReturnPoeni(int brzina, int points) { TrkackiPoeni t = new TrkackiPoeni(); var result = t.RacunajPoene(brzina); Assert.That(result, Is.EqualTo(points)); }
public void RacunajPoeneTest_BrzinaVanGranica_ThrowArugmentOutOfRangeException(int brzina) { TrkackiPoeni t = new TrkackiPoeni(); Assert.That(() => t.RacunajPoene(brzina), Throws.Exception.TypeOf <ArgumentOutOfRangeException>()); }