Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Tests/DateTimeFormattingTests.cs @ 65:ebce59b45b50
Agregado de version inicial del publicador para el blog
author | ROWIES@ardejorxp.inworx.corp |
---|---|
date | Tue, 17 May 2011 18:04:56 -0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
62:c40b97bbed01 | 65:ebce59b45b50 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Diagnostics; | |
4 using System.Globalization; | |
5 using System.Linq; | |
6 using System.Text; | |
7 using NUnit.Framework; | |
8 | |
9 namespace AltNetHispano.Agendas.Tests | |
10 { | |
11 [TestFixture] | |
12 public class DateTimeFormattingTests | |
13 { | |
14 [Test] | |
15 public void la_fecha_debe_formatearse_en_castellano() | |
16 { | |
17 var fecha = new DateTime(2010, 11, 20, 18, 0, 0); | |
18 Assert.AreEqual("sábado, 20 de noviembre de 2010", fecha.ToString("D", CultureInfo.CreateSpecificCulture("es-ES"))); | |
19 } | |
20 | |
21 [Test] | |
22 public void la_hora_debe_expresarse_en_24hs() | |
23 { | |
24 var fecha = new DateTime(2010, 11, 20, 18, 0, 0); | |
25 Assert.AreEqual("18:00", fecha.ToString("t", CultureInfo.CreateSpecificCulture("es-ES"))); | |
26 } | |
27 } | |
28 | |
29 } |