# HG changeset patch # User juanjose.montesdeocaarbos # Date 1312975292 10800 # Node ID 523e3586b1c11f0a4f97c5498a15b42edae1240f # Parent 03cf6a377ee8c2d53220418a39c719999aed82e4# Parent 03c237cd5cc4a4ceb8c2c9ae970243c06b82b980 Combinar diff -r 03c237cd5cc4 -r 523e3586b1c1 Agendas/trunk/src/Agendas.Tests/AgendarTests.cs --- a/Agendas/trunk/src/Agendas.Tests/AgendarTests.cs Tue Aug 09 09:52:02 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/AgendarTests.cs Wed Aug 10 08:21:32 2011 -0300 @@ -371,7 +371,7 @@ } [Test] - [ExpectedException(typeof(AccionNoSoportadaException))] + //[ExpectedException(typeof(AccionNoSoportadaException))] public void Al_confirmar_sin_agendar_debe_lanzarse_excepcion() { var publicador1 = new Mock(); @@ -384,11 +384,11 @@ Assert.IsFalse(evento.Estado.GetType() == typeof(EventoAgendadoState)); - agenda.Confirmar(evento.Id); + Assert.Throws(()=>agenda.Confirmar(evento.Id)); } [Test] - [ExpectedException(typeof(AccionNoSoportadaException))] + //[ExpectedException(typeof(AccionNoSoportadaException))] public void Al_publicar_sin_confirmar_debe_lanzarse_excepcion() { const string urlWiki = "http://www.altnethispano.org/wiki/van-2010-10-21-mono-cecil.ashx"; @@ -402,7 +402,7 @@ DefaultEventoRepository.GetByState(EventoPropuestoState.GetInstance()).Single(e => e.Titulo == "Html 5"); Assert.IsFalse(evento.Estado.GetType() == typeof(EventoConfirmadoState)); - agenda.Publicar(evento.Id, 1, urlWiki, duracion); + Assert.Throws(() => agenda.Publicar(evento.Id, 1, urlWiki, duracion)); } [Test] diff -r 03c237cd5cc4 -r 523e3586b1c1 Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs --- a/Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs Tue Aug 09 09:52:02 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/Blog/PostWriterWebServiceAdapterTests.cs Wed Aug 10 08:21:32 2011 -0300 @@ -8,11 +8,11 @@ public class PostWriterWebServiceAdapterTests { [Test] - [ExpectedException(typeof(EndpointNotFoundException))] + //[ExpectedException(typeof(EndpointNotFoundException))] public void Si_la_url_es_invalida_debe_lanzar_excepcion() { var srv = new PostWriterWebServiceAdapter(new BlogPublicadorConfig("http://dummy/dummy.aspx", "dummy", "dummy")); - srv.WriteBlogPost(null, null, null, false); + Assert.Throws(()=>srv.WriteBlogPost(null, null, null, false)); } }