comparison Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 140:3639803112c6

Refactoring de la relación entre Evento y Estado
author nelopauselli
date Fri, 29 Jul 2011 16:30:53 -0300
parents
children 68b09c30b0d2
comparison
equal deleted inserted replaced
139:18e5a78186e4 140:3639803112c6
1 using System.Linq;
2 using Agendas.NHibernate;
3 using AltNetHispano.Agendas.Domain;
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 {
14 var definidos = EventoStateType.All;
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 }