view Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 244:31fb96912d37

Ticket 162: Publicaciones con Nro Orden repetido.
author juanjose.montesdeocaarbos
date Thu, 06 Oct 2011 09:09:37 -0300
parents 68b09c30b0d2
children
line wrap: on
line source

using System.Linq;
using AltNetHispano.Agendas.Domain;
using AltNetHispano.Agendas.Domain.Repositories;
using NUnit.Framework;

namespace AltNetHispano.Agendas.Tests
{
	[TestFixture]
	public class EventoStateTests
	{
		[Test]
		public void Check_all()
		{
			var definidos = EventoStateRepository.All;

			var types = typeof (EventoState).Assembly.GetTypes();

			int reflexion = types.Count(type => typeof(EventoState).IsAssignableFrom(type) && !type.IsAbstract);

			Assert.AreEqual(definidos.Count(), reflexion);
		}
	}
}