public void TestUpdate2() { var model = new LogViewMainPanelViewModel(_services, _actionCenter.Object, _dataSources.Object, _quickFilters.Object, _highlighters.Object, _settings.Object); var dataSourceViewModel = new Mock <IDataSourceViewModel>(); var dataSource = new Mock <IDataSource>(); var logFile = new InMemoryLogSource(); dataSource.Setup(x => x.UnfilteredLogSource).Returns(logFile); var filteredLogFile = new InMemoryLogSource(); dataSource.Setup(x => x.FilteredLogSource).Returns(filteredLogFile); dataSourceViewModel.Setup(x => x.DataSource).Returns(dataSource.Object); model.CurrentDataSource = dataSourceViewModel.Object; logFile.AddEntry("", LevelFlags.All); logFile.SetValue(Properties.Size, Size.OneByte); model.Update(); model.CurrentDataSourceLogView.NoEntriesExplanation.Should().Be("Nothing matches level filter"); }