Mercurial > repos > IBBoard.WarFoundry.API.Tests
view API/AbstractWarFoundryLoaderTests.cs @ 229:6ec46f3db2d4
Re #419: Remove assumptions of a file-based install
* Test loading from resources
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 11 Jul 2012 20:33:11 +0100 |
parents | 7c21ca1482cb |
children |
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 { [TestFixture()] public class AbstractWarFoundryLoaderTests { [Test()] 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)); } } }