Ejemplo n.º 1
0
        public void CultureManagerInitializeTest()
        {
            ContentManager content = new ContentManager();

            content.RootDirectory = "Content";

            Dictionary <Type, string> confFiles = new Dictionary <Type, string>();

            confFiles.Add(typeof(GraphicsConfiguration), "graphics.xml");
            confFiles.Add(typeof(AudioConfiguration), "audio.xml");
            confFiles.Add(typeof(GameConfiguration), "game.xml");
            confFiles.Add(typeof(HotKeyConfiguration), "keys.xml");

            ConfigurationManager configurationManager = new ConfigurationManager(confFiles);

            configurationManager.Initialize(content);

            CultureManager cultureManager = new CultureManager();

            cultureManager.Initialize(configurationManager, content);


            Assert.AreEqual(this._language, cultureManager.Current);
            Assert.AreEqual(true, cultureManager.IsInit);
        }
Ejemplo n.º 2
0
 protected override void InitializeCulture()
 {
     CultureManager.Initialize();
     base.InitializeCulture();
 }