public void SetUp() { _wpfTester = new WPFTester(); _window = new Window(); _wpfTester.ShowWindow(_window); Init(); _ISession = MusicSessionImpl.GetSession(_SK.Builder, new WPFHwndProvider(_window)); _Session = _ISession as MusicSessionImpl; IMusicImporter imi = _ISession.GetDBImporter(); imi.Load(); IDirectoryImporterBuilder imib = _ISession.GetImporterBuilder(MusicImportType.Directory) as IDirectoryImporterBuilder; Assert.That(imib, Is.Not.Null); imib.Directory = DirectoryIn; imib.DefaultAlbumMaturity = AlbumMaturity.Discover; Assert.That(imib.IsValid, Is.True); imi = imib.BuildImporter(); Assert.That(imi, Is.Not.Null); imi.Load(); }
private void InitUIinSTA() { _wpfTester = new WPFTester(); _window = CreateMainWindow(); _wpfTester.ShowWindow(_window); _ARE.Set(); while (_CTS.IsCancellationRequested == false) { DispatcherHelper.DoEvents(); } }
public void Setup() { _wpfTester = new WPFTester(); _window = new Window(); _textBlock = new TextBlock(); StackPanel stackPanel = new StackPanel(); NameScope.SetNameScope(_window, new NameScope()); _window.Content = stackPanel; _slider = new Slider(); _slider.Name = "TheSlider"; _window.RegisterName(_slider.Name, _slider); stackPanel.Children.Add(_textBlock); stackPanel.Children.Add(_slider); _target = new PyBinding.PyBinding(); _wpfTester.ShowWindow(_window); }
public void Setup() { _wpfTester = new WPFTester(); _window = new Window(); StackPanel stackPanel = new StackPanel(); NameScope.SetNameScope(_window, new NameScope()); _window.Content = stackPanel; _listBlock = new ListBox(); _listBlock.Name = "theleb"; _listBlock.SelectionMode = SelectionMode.Multiple; _listBlock.ItemsSource = new string[] { "1", "2", "3", "4" }; _window.RegisterName(_listBlock.Name, _listBlock); stackPanel.Children.Add(_listBlock); _Binded = new WrappedObservableCollection<string>(); _wpfTester.ShowWindow(_window); }
public void Setup() { _wpfTester = new WPFTester(); }