diff Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs @ 186:71737419a839

Ticket 143: Test de unidad, y algo de configuración para acortar URL con servicio de Google.
author juanjose.montesdeocaarbos
date Tue, 09 Aug 2011 08:43:25 -0300
parents
children fe47f11f5f20
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Google.Test/GUrlShortenerTest.cs	Tue Aug 09 08:43:25 2011 -0300
@@ -0,0 +1,20 @@
+using AltNetHispano.Agendas.Google;
+using NUnit.Framework;
+
+namespace Agendas.Google.Test
+{
+	[TestFixture]
+	[Explicit]
+	public class GUrlShortenerTest
+	{
+		[Test]
+		public void Obtener_Url_corta()
+		{
+			var gUrlShortener = new GUrlShortener();
+
+			var shortUrl = gUrlShortener.GetShortUrl("http://www.twitter.com");
+
+			Assert.AreEqual("http://goo.gl/CbHS", shortUrl);
+		}
+	}
+}