Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
annotate API/AbstractWarFoundryLoaderTests.cs @ 239:370bec16a364 default tip
Add initial testing for equipment with type (incomplete)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 16 Oct 2016 20:29:35 +0100 |
parents | e173c5512067 |
children |
rev | line source |
---|---|
77 | 1 using System; |
2 using NUnit.Framework; | |
3 using IBBoard.WarFoundry.MockObjects; | |
4 using System.Collections.Generic; | |
5 using System.IO; | |
228
7c21ca1482cb
Re #419: Remove assumptions of a file-based install
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
6 using IBBoard.WarFoundry.API.Loading; |
77 | 7 |
8 namespace IBBoard.WarFoundry.API | |
9 { | |
10 [TestFixture()] | |
11 public class AbstractWarFoundryLoaderTests | |
12 { | |
13 [Test()] | |
14 public void TestTriesToLoadFromSubdir() | |
15 { | |
16 MockWarFoundryLoader loader = new MockWarFoundryLoader(); | |
228
7c21ca1482cb
Re #419: Remove assumptions of a file-based install
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
17 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
|
18 List<FileLoadFailure> failures = loader.LoadFiles(); |
77 | 19 Assert.That(failures.Count, Is.EqualTo(2)); |
20 } | |
21 } | |
22 } | |
23 |