예제 #1
0
        public void UseCultureInitializesCultureInfo()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.UseCulture <MockCultureBuilder>();
            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Not.Null);
            Assert.That(coreBuilder.Info.AppCultureInfo.LCID, Is.EqualTo(new CultureInfo("de-de").LCID));
            Assert.That(coreBuilder.Info.MainViewModel, Is.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.Null);
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Null);
        }