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"));
        }
Example #2
0
        public MainScreen()
        {
            InitializeComponent();

            var args = Environment.GetCommandLineArgs();

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

            _controller = new MainScreenController(this, arguments);
        }
Example #3
0
        public MainScreen()
        {
            InitializeComponent();

            var args = Environment.GetCommandLineArgs();

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

            _controller = new MainScreenController(this, arguments);
        }