Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Twitter.Tests/Publicador_tests.cs @ 240:01a9b47185eb
Tests de Twitter, daban en rojo por mensaje fijo (01/10/2011).
author | juanjose.montesdeocaarbos |
---|---|
date | Wed, 05 Oct 2011 07:41:30 -0300 |
parents | e5959f3405e0 |
children | 5cc1681d3789 |
comparison
equal
deleted
inserted
replaced
239:717fce60f200 | 240:01a9b47185eb |
---|---|
94 Assert.That(joined, Is.StringContaining("Identity Providers Públicos y Empresariales")); | 94 Assert.That(joined, Is.StringContaining("Identity Providers Públicos y Empresariales")); |
95 Assert.That(joined, Is.StringContaining("@carlospeix")); | 95 Assert.That(joined, Is.StringContaining("@carlospeix")); |
96 Assert.That(joined, Is.StringContaining("@nelopauselli")); | 96 Assert.That(joined, Is.StringContaining("@nelopauselli")); |
97 | 97 |
98 Assert.AreEqual(2, twitters.Count()); | 98 Assert.AreEqual(2, twitters.Count()); |
99 Assert.AreEqual("Se ha agendando el evento Identity Providers Públicos y Empresariales con @carlospeix y @nelopauselli para el 01/10/2011...", twitters.First()); | 99 Assert.AreEqual(string.Format("Se ha agendando el evento Identity Providers Públicos y Empresariales con @carlospeix y @nelopauselli para el {0}...", inicio.ToString("dd/MM/yyyy")), twitters.First()); |
100 Assert.AreEqual("...por http://snipr.com/virtualaltnet", twitters.Last()); | 100 Assert.AreEqual("...por http://snipr.com/virtualaltnet", twitters.Last()); |
101 | 101 |
102 adapter.Verify(a => a.Update(It.IsAny<string>(), out message), Times.Exactly(2)); | 102 adapter.Verify(a => a.Update(It.IsAny<string>(), out message), Times.Exactly(2)); |
103 | 103 |
104 } | 104 } |
125 { | 125 { |
126 Console.WriteLine(twitter); | 126 Console.WriteLine(twitter); |
127 Assert.LessOrEqual(twitter.Length, 140); | 127 Assert.LessOrEqual(twitter.Length, 140); |
128 joined += twitter; | 128 joined += twitter; |
129 } | 129 } |
130 Assert.AreEqual("Se ha agendando el evento Identity Providers Públicos y Empresariales para el 01/10/2011 por http://snipr.com/virtualaltnet", joined); | 130 Assert.AreEqual(string.Format("Se ha agendando el evento Identity Providers Públicos y Empresariales para el {0} por http://snipr.com/virtualaltnet", inicio.ToString("dd/MM/yyyy")), joined); |
131 | 131 |
132 adapter.Verify(a => a.Update(It.IsAny<string>(), out message), Times.Once()); | 132 adapter.Verify(a => a.Update(It.IsAny<string>(), out message), Times.Once()); |
133 | 133 |
134 } | 134 } |
135 } | 135 } |