Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 243:59f8fa2f835e
Ticket 177: Valor de Duración de VAN en 0.
author | juanjose.montesdeocaarbos |
---|---|
date | Thu, 06 Oct 2011 08:13:05 -0300 |
parents | 68b09c30b0d2 |
children |
rev | line source |
---|---|
140 | 1 using System.Linq; |
2 using AltNetHispano.Agendas.Domain; | |
222
68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
nelopauselli
parents:
140
diff
changeset
|
3 using AltNetHispano.Agendas.Domain.Repositories; |
140 | 4 using NUnit.Framework; |
5 | |
6 namespace AltNetHispano.Agendas.Tests | |
7 { | |
8 [TestFixture] | |
9 public class EventoStateTests | |
10 { | |
11 [Test] | |
12 public void Check_all() | |
13 { | |
222
68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
nelopauselli
parents:
140
diff
changeset
|
14 var definidos = EventoStateRepository.All; |
140 | 15 |
16 var types = typeof (EventoState).Assembly.GetTypes(); | |
17 | |
18 int reflexion = types.Count(type => typeof(EventoState).IsAssignableFrom(type) && !type.IsAbstract); | |
19 | |
20 Assert.AreEqual(definidos.Count(), reflexion); | |
21 } | |
22 } | |
23 } |