public void My_ApplicationConstructorTest() { Window startupWindow = new Window(); My_Application target = new My_Application(startupWindow); // nothing to test really }
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); }
public void getMainWindowTest() { Window startupWindow = new Window(); My_Application target = new My_Application(startupWindow); Assert.AreEqual(target.getMainWindow(), startupWindow); }