Mercurial > altnet-hispano
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs Fri Jul 29 16:30:53 2011 -0300 @@ -0,0 +1,23 @@ +using System.Linq; +using Agendas.NHibernate; +using AltNetHispano.Agendas.Domain; +using NUnit.Framework; + +namespace AltNetHispano.Agendas.Tests +{ + [TestFixture] + public class EventoStateTests + { + [Test] + public void Check_all() + { + var definidos = EventoStateType.All; + + var types = typeof (EventoState).Assembly.GetTypes(); + + int reflexion = types.Count(type => typeof(EventoState).IsAssignableFrom(type) && !type.IsAbstract); + + Assert.AreEqual(definidos.Count(), reflexion); + } + } +} \ No newline at end of file