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;
|
|
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();
|
|
17 loader.AddLoadDirectory(new DirectoryInfo("testdata/subdir-loading-test"));
|
|
18 List<FileLoadFailure> failures = loader.LoadFiles ();
|
|
19 Assert.That(failures.Count, Is.EqualTo(2));
|
|
20 }
|
|
21 }
|
|
22 }
|
|
23
|