view API/AbstractWarFoundryLoaderTests.cs @ 139:3e4864e206ea

Re #140: Equality methods * Add equality testing to RequiresNoMoreThanN requirement * Add extra different races for testing more of equality method
author IBBoard <dev@ibboard.co.uk>
date Tue, 26 Apr 2011 19:47:36 +0000
parents 4211c818ef96
children 7c21ca1482cb
line wrap: on
line source

using System;
using NUnit.Framework;
using IBBoard.WarFoundry.MockObjects;
using System.Collections.Generic;
using NUnit.Framework.SyntaxHelpers;
using System.IO;

namespace IBBoard.WarFoundry.API
{
	[TestFixture()]
	public class AbstractWarFoundryLoaderTests
	{
		[Test()]
		public void TestTriesToLoadFromSubdir()
		{
			MockWarFoundryLoader loader = new MockWarFoundryLoader();
			loader.AddLoadDirectory(new DirectoryInfo("testdata/subdir-loading-test"));
			List<FileLoadFailure> failures = loader.LoadFiles ();
			Assert.That(failures.Count, Is.EqualTo(2));
		}
	}
}