public void TestMainWindow() { var win = new MainWindow(); Assert.That(win, Is.Not.Null); var rc = new RelayCommand(_ => { }); rc.CanExecuteChanged += rc_CanExecuteChanged; rc.CanExecuteChanged -= rc_CanExecuteChanged; }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MainWindow = new MainWindow(); SetupContainer(); DemoData.InitDemoData(); ShowStartupWindow(); }