Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
view 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 |
line wrap: on
line source
using System; using NUnit.Framework; using IBBoard.WarFoundry.MockObjects; using System.Collections.Generic; 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)); } } }