Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:49125b681709 | 189:fe47f11f5f20 |
---|---|
1 using AltNetHispano.Agendas.Google; | 1 using System; |
2 using AltNetHispano.Agendas.Google; | |
2 using NUnit.Framework; | 3 using NUnit.Framework; |
3 | 4 |
4 namespace Agendas.Google.Test | 5 namespace Agendas.Google.Test |
5 { | 6 { |
6 [TestFixture] | 7 [TestFixture] |
8 public class GUrlShortenerTest | 9 public class GUrlShortenerTest |
9 { | 10 { |
10 [Test] | 11 [Test] |
11 public void Obtener_Url_corta() | 12 public void Obtener_Url_corta() |
12 { | 13 { |
13 var gUrlShortener = new GUrlShortener(); | 14 var gUrlShortener = new GUrlShortenerAdapter(); |
14 | 15 |
15 var shortUrl = gUrlShortener.GetShortUrl("http://www.twitter.com"); | 16 var shortUrl = gUrlShortener.GetShortUrl("http://www.twitter.com"); |
17 | |
18 Console.WriteLine(shortUrl); | |
16 | 19 |
17 Assert.AreEqual("http://goo.gl/CbHS", shortUrl); | 20 Assert.AreEqual("http://goo.gl/CbHS", shortUrl); |
18 } | 21 } |
19 } | 22 } |
20 } | 23 } |