Example #1
0
        public void TestPrecioMaximoMenorQuePrecioMinimoLanzaExcepcion()
        {
            Perfil perfil = new PerfilStub(5, 10);

            Assert.Throws <Exception> (() => perfil.PrecioMax = 2);
        }
Example #2
0
        public void TestPrecioMinimoMayorQuePrecioMaximoLanzaExcepcion()
        {
            Perfil perfil = new PerfilStub(10, 20);

            Assert.Throws <Exception> (() => perfil.PrecioMin = 40);
        }
Example #3
0
        public void TestPrecioMaximoNegativoLanzaExcepcion()
        {
            Perfil perfil = new PerfilStub();

            Assert.Throws <Exception> (() => perfil.PrecioMax = -1);
        }