public NavigationFlyoutViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new NavigationFlyoutViewModel();
        }
        public SettingsSolidViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new SettingsSolidViewModel();
        }
示例#3
0
        public HomeTilesViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new HomeTilesViewModel();
        }
        public ChangelogListViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new ChangelogListViewModel();
        }
示例#5
0
        public SettingsAttributesViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new SettingsAttributesViewModel();
        }
        public LeftTitlebarCommandsViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new LeftTitlebarCommandsViewModel();
        }
        public SettingsThumbnailViewModelTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            vm = new SettingsThumbnailViewModel();
        }
示例#8
0
        public void Runs()
        {
            var config = new MDKFactory.ProgramConfig
            {
                GridTerminalSystem = Mock.Of <IMyGridTerminalSystem>(),
            };

            TestBootstrapper.Run(config);
        }
示例#9
0
        public ApplicationThemeTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            ctt        = new ApplicationTheme();
            colorBrush = new SolidColorBrush(Color.FromRgb(200, 100, 0));
        }
示例#10
0
        public void TestCommand_Terminates()
        {
            var config = new MDKFactory.ProgramConfig
            {
                GridTerminalSystem = Mock.Of <IMyGridTerminalSystem>(),
            };

            TestBootstrapper.Run(config, "test");
        }
示例#11
0
        public AccentColorTest()
        {
            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            ctt        = new AccentColor();
            colorBrush = new SolidColorBrush(Color.FromRgb(200, 100, 0));
        }
示例#12
0
        public void UnityModuleInitTest()
        {
            Assert.IsNotNull(bootstrapper);

            bootstrapper.Run();
            bootstrapper.Container.RegisterType <IModule, UnityModule>();
            var unityModule = bootstrapper.Container.Resolve <IModule>();

            Assert.IsNotNull(unityModule);
        }
示例#13
0
        public MainWindowViewModelTest()
        {
            if (Application.Current == null)
            {
                App app = new App();
            }

            TestBootstrapper bootstrapper = new TestBootstrapper();

            bootstrapper.Run();

            viewModel = new MainWindowViewModel();
        }