Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
view API/AbstractWarFoundryLoaderTests.cs @ 214:1674a499168e
Re #379:
* Make all tests test both Unit and UnitType by modifying abstract class's helper methods
* Re-implement UnitRequiresAtLeastNUnitsRequirementTest tests (adding and validation)
* Remove unused tests from Requires...
TODO: Re-implement equality testing
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Feb 2012 20:18:45 +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)); } } }