Пример #1
0
        public void Launching_The_App_With_A_File_Path_Should_Append_The_Path_To_The_Window_Title()
        {
            var screen = new StubMainScreen();
            var controller = new MainScreenController(screen, new StubCommandLineArguments("Foo.nplant"));
            controller.Start();

            Assert.That(screen.Title, Is.EqualTo("NPlant UI - Foo.nplant"));
        }
Пример #2
0
        public MainScreen()
        {
            InitializeComponent();

            var args = Environment.GetCommandLineArgs();

            CommandLineArguments arguments = CommandLineArguments.Load(args, true);

            _controller = new MainScreenController(this, arguments);
        }
Пример #3
0
        public MainScreen()
        {
            InitializeComponent();

            var args = Environment.GetCommandLineArgs();

            CommandLineArguments arguments = CommandLineArguments.Load(args, true);

            _controller = new MainScreenController(this, arguments);
        }