view Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 254:478656b70afb

Tag deploy 2011-10-07 v1.0.3 para conjunto de cambios 7cf64cd790ab añadido
author Administrador@DESA-WIN-002.cpe.telecentro.net.ar
date Mon, 17 Oct 2011 07:41:32 -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);
		}
	}
}