Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs @ 189:fe47f11f5f20
Adapter para url shorten de google
author | nelopauselli |
---|---|
date | Tue, 09 Aug 2011 09:38:28 -0300 |
parents | 71737419a839 |
children | e6abe8e1a794 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs Tue Aug 09 08:55:08 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs Tue Aug 09 09:38:28 2011 -0300 @@ -1,4 +1,5 @@ -using AltNetHispano.Agendas.Google; +using System; +using AltNetHispano.Agendas.Google; using NUnit.Framework; namespace Agendas.Google.Test @@ -10,10 +11,12 @@ [Test] public void Obtener_Url_corta() { - var gUrlShortener = new GUrlShortener(); + var gUrlShortener = new GUrlShortenerAdapter(); var shortUrl = gUrlShortener.GetShortUrl("http://www.twitter.com"); + Console.WriteLine(shortUrl); + Assert.AreEqual("http://goo.gl/CbHS", shortUrl); } }