public void TestPrecioMaximoMenorQuePrecioMinimoLanzaExcepcion() { Perfil perfil = new PerfilStub(5, 10); Assert.Throws <Exception> (() => perfil.PrecioMax = 2); }
public void TestPrecioMinimoMayorQuePrecioMaximoLanzaExcepcion() { Perfil perfil = new PerfilStub(10, 20); Assert.Throws <Exception> (() => perfil.PrecioMin = 40); }
public void TestPrecioMaximoNegativoLanzaExcepcion() { Perfil perfil = new PerfilStub(); Assert.Throws <Exception> (() => perfil.PrecioMax = -1); }