Mercurial > repos > IBBoard.WarFoundry.API.Tests
annotate 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 <dev@ibboard.co.uk> |
---|---|
date | Wed, 01 Aug 2012 21:01:43 +0100 |
parents | 7c21ca1482cb |
children |
rev | line source |
---|---|
77 | 1 using System; |
2 using NUnit.Framework; | |
3 using IBBoard.WarFoundry.MockObjects; | |
4 using System.Collections.Generic; | |
5 using NUnit.Framework.SyntaxHelpers; | |
6 using System.IO; | |
228
7c21ca1482cb
Re #419: Remove assumptions of a file-based install
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
7 using IBBoard.WarFoundry.API.Loading; |
77 | 8 |
9 namespace IBBoard.WarFoundry.API | |
10 { | |
11 [TestFixture()] | |
12 public class AbstractWarFoundryLoaderTests | |
13 { | |
14 [Test()] | |
15 public void TestTriesToLoadFromSubdir() | |
16 { | |
17 MockWarFoundryLoader loader = new MockWarFoundryLoader(); | |
228
7c21ca1482cb
Re #419: Remove assumptions of a file-based install
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
18 loader.AddLoadSource(new LoadableObjectSourceDirectory("testdata/subdir-loading-test")); |
7c21ca1482cb
Re #419: Remove assumptions of a file-based install
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
19 List<FileLoadFailure> failures = loader.LoadFiles(); |
77 | 20 Assert.That(failures.Count, Is.EqualTo(2)); |
21 } | |
22 } | |
23 } | |
24 |