public void NoIngresaNumeroLanzaExcepcion()
        {
            Library.BibliotecaPerfiles biblioteca = Library.BibliotecaPerfiles.Instance;
            biblioteca.CrearUsuario(0);
            Mensaje mensaje = new Mensaje("stub", 0, TipoPlataforma.Consola);
            ControlPrecioMinStub control = new ControlPrecioMinStub();

            BibliotecaPerfiles.GetUsuario(0).RegistroPreguntas.PrecioMin = true;

            control.Handle(mensaje);

            Assert.Throws <FormatException>(() => Int32.Parse(mensaje.Contenido));
        }
        public void SiPrecioMinCorrectoSeteaPerfil()
        {
            Library.BibliotecaPerfiles biblioteca = Library.BibliotecaPerfiles.Instance;
            biblioteca.CrearUsuario(0);
            Mensaje mensaje = new Mensaje("45", 0, TipoPlataforma.Consola);
            ControlPrecioMinStub control = new ControlPrecioMinStub();

            BibliotecaPerfiles.GetUsuario(0).RegistroPreguntas.PrecioMin = true;

            control.Handle(mensaje);

            Assert.AreEqual(BibliotecaPerfiles.GetUsuario(0).PrecioMin, 45);
        }