view Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 169:5c94b052d838

Ticket 153: UI de Publicar. Faltaba la Duración del evento en la capa de negocios.
author juanjose.montesdeocaarbos
date Sat, 06 Aug 2011 12:41:46 -0300
parents 3639803112c6
children 68b09c30b0d2
line wrap: on
line source

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);
		}
	}
}