comparison API/WarFoundryLoaderTest.cs @ 35:4302e6b2c5c1

Re #228: Crash with missing abilityID * Update tests to match new refactored classes * Add expected message to missing game system error test * Re-implement missing ability test
author IBBoard <dev@ibboard.co.uk>
date Thu, 24 Dec 2009 19:46:30 +0000
parents a4e7e938d065
children d1ec7618f812
comparison
equal deleted inserted replaced
34:bdaeadafe130 35:4302e6b2c5c1
22 } 22 }
23 23
24 [Test()] 24 [Test()]
25 public void TestLoadingSystemCompletesWithoutError() 25 public void TestLoadingSystemCompletesWithoutError()
26 { 26 {
27 WarFoundryLoader loader = WarFoundryLoader.GetDefault(); 27 AbstractWarFoundryLoader loader = WarFoundryLoader.GetDefault();
28 DirectoryInfo dir = new DirectoryInfo("testdata"); 28 DirectoryInfo dir = new DirectoryInfo("testdata");
29 loader.RegisterFactory(GetSystemFactory()); 29 loader.RegisterFactory(GetSystemFactory());
30 loader.AddLoadDirectory(dir); 30 loader.AddLoadDirectory(dir);
31 loader.LoadFiles(); 31 loader.LoadFiles();
32 Assert.Greater(loader.GetGameSystems().Length, 0); 32 Assert.Greater(loader.GetGameSystems().Length, 0);