[gbrainy] Fixes unit test



commit 58aa707edf191f29a38c014f0d7327780553ee34
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Nov 12 11:54:16 2011 +0100

    Fixes unit test

 tests/Core/GameSessionTest.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/Core/GameSessionTest.cs b/tests/Core/GameSessionTest.cs
index 5c7cc81..3b011b5 100644
--- a/tests/Core/GameSessionTest.cs
+++ b/tests/Core/GameSessionTest.cs
@@ -22,6 +22,8 @@ using System.Collections.Generic;
 using NUnit.Framework;
 
 using gbrainy.Core.Main;
+using gbrainy.Core.Services;
+using gbrainy.Core.Libraries;
 
 namespace gbrainy.Test.Core
 {
@@ -36,10 +38,9 @@ namespace gbrainy.Test.Core
 		
 		GameSession PrepareSession ()
 		{
-			GameSession session = new GameSession (null);
+			ITranslations translations = new TranslationsCatalog ();
+			GameSession session = new GameSession (translations);
 			session.GameManager.LoadAssemblyGames ("gbrainy.Games.dll");
-			session.GameManager.LoadPlugins ();
-			session.GameManager.LoadGamesFromXml (System.IO.Path.Combine (gbrainy.Core.Main.Defines.DATA_DIR, "games.xml"));
 			return session;
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]