Ejemplo n.º 1
0
        public void MainViewModelInitializesMainViewModel()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.MainViewModel <Random>();
            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Null);
            Assert.That(coreBuilder.Info.MainViewModel, Is.Not.Null);
            Assert.That(coreBuilder.Info.MainViewModel, Is.EqualTo(typeof(Random)));
            Assert.That(coreBuilder.Info.MainWindow, Is.Null);
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Null);
        }