예제 #1
0
        public void SetUp()
        {
            _dataSource = new SingleDataSourceViewModel(new SingleDataSource(_scheduler, new DataSource("Foobar") {Id = Guid.NewGuid()}));
            _control = new LogViewerControl
                {
                    DataSource = _dataSource,
                    Width = 1024,
                    Height = 768
                };

            DispatcherExtensions.ExecuteAllEvents();

            _dispatcher = new ManualDispatcher();
        }
예제 #2
0
        public void TestCtor()
        {
            var source = new SingleDataSourceViewModel(new SingleDataSource(_scheduler, new DataSource("Foobar") {Id = Guid.NewGuid()}));
            source.LevelsFilter = LevelFlags.All;

            var control = new LogViewerControl
                {
                    DataSource = source
                };
            control.ShowDebug.Should().BeTrue();
            control.ShowInfo.Should().BeTrue();
            control.ShowWarning.Should().BeTrue();
            control.ShowError.Should().BeTrue();
            control.ShowFatal.Should().BeTrue();
        }