Example #1
0
        public void My_ApplicationConstructorTest()
        {
            Window startupWindow = new Window();
            My_Application target = new My_Application(startupWindow);

            // nothing to test really
        }
Example #2
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var app = new My_Application(this);

            this.Width = System.Windows.SystemParameters.VirtualScreenWidth;
            this.Height = System.Windows.SystemParameters.VirtualScreenHeight;
            this.Left = 0;
            this.Top = 0;
            this.ResizeMode = ResizeMode.NoResize;

            LayoutRoot.Children.Add(app);
        }
Example #3
0
 public void getMainWindowTest()
 {
     Window startupWindow = new Window();
     My_Application target = new My_Application(startupWindow);
     Assert.AreEqual(target.getMainWindow(), startupWindow);
 }