Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs @ 232:806fd94727ce
Validación de parámetros en GUrlShortener
author | juanjose.montesdeocaarbos |
---|---|
date | Mon, 03 Oct 2011 07:50:54 -0300 |
parents | 03c237cd5cc4 |
children |
comparison
equal
deleted
inserted
replaced
226:4d05b5883eac | 232:806fd94727ce |
---|---|
36 Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); | 36 Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); |
37 | 37 |
38 Assert.AreEqual(new Uri("http://altnethispano.org/Inicio.aspx"), response.ResponseUri); | 38 Assert.AreEqual(new Uri("http://altnethispano.org/Inicio.aspx"), response.ResponseUri); |
39 | 39 |
40 } | 40 } |
41 } | 41 |
42 [Test] | |
43 public void Parametros_Invalidos_En_GetShortUrl() | |
44 { | |
45 var gUrlShortener = new GUrlShortenerAdapter(); | |
46 | |
47 Assert.Throws<ArgumentException>(() => gUrlShortener.GetShortUrl(string.Empty)); | |
48 Assert.Throws<ArgumentNullException>(() => gUrlShortener.GetShortUrl(null)); | |
49 } | |
50 } | |
42 } | 51 } |