view API/AbstractWarFoundryLoaderTests.cs @ 235:d122354eeebc

Re #410: N per M models in parent requirement * Add tests for adding * Change text on adding to make more sense (tell users N, M, and how many there are now)
author IBBoard <>
date Wed, 01 Aug 2012 21:01:43 +0100
parents 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;
using IBBoard.WarFoundry.API.Loading;

namespace IBBoard.WarFoundry.API
	public class AbstractWarFoundryLoaderTests
		public void TestTriesToLoadFromSubdir()
			MockWarFoundryLoader loader = new MockWarFoundryLoader();
			loader.AddLoadSource(new LoadableObjectSourceDirectory("testdata/subdir-loading-test"));
			List<FileLoadFailure> failures = loader.LoadFiles();
			Assert.That(failures.Count, Is.EqualTo(2));