From 16f40a5ab439e9e2682a57bbdcd3a7ae66a83d49 Mon Sep 17 00:00:00 2001 From: Stefan Kert Date: Sat, 23 Mar 2019 08:10:55 +0100 Subject: [PATCH] Fixed issue with indicators Added additional unittests Some cleanup of usings and classes --- .../Models/IBuildInformationModel.cs | 3 +- .../Components/ControlView.xaml | 26 ++++-- .../Controls/BuildVisionProgressBar.xaml | 3 +- .../Indicators/ErrorProjectsIndicator.cs | 5 ++ .../Controls/Indicators/ErrorsIndicator.cs | 5 ++ .../Controls/Indicators/MessagesIndicator.cs | 5 ++ .../Indicators/SuccessProjectsIndicator.cs | 5 ++ .../Indicators/UpToDateProjectsIndicator.cs | 5 ++ .../Indicators/WarningProjectsIndicator.cs | 5 ++ .../Controls/Indicators/WarningsIndicator.cs | 5 ++ .../Models/BuildInformationModel.cs | 6 +- src/BuildVision.UI/Themes/Generic.xaml | 10 +-- src/BuildVision/BuildVision.csproj | 12 +-- .../EnvDTECodeModelLanguageConstants2.cs | 7 ++ .../EnvDTEProjectKinds.cs | 0 .../{Core => Constants}/PackageGuids.cs | 0 .../{Core => Constants}/PackageIds.cs | 0 src/BuildVision/Core/BuildVisionPackage.cs | 25 ------ src/BuildVision/Helpers/ProjectExtensions.cs | 23 ++--- .../Helpers/ProjectItemExtensions.cs | 59 +++++++++++- .../Helpers/ProjectItemsExtensions.cs | 62 ------------- .../Helpers/SolutionProjectsExtensions.cs | 13 ++- .../Services/BuildInformationProvider.cs | 1 + .../Services/BuildingProjectsProvider.cs | 44 ++++----- src/BuildVision/Tool/Building/BuildManager.cs | 11 --- .../Tool/Building/BuildOutputLogger.cs | 5 +- .../Building/WindowStateManager.cs} | 90 ++++++++++--------- .../PackageTests.cs | 2 + .../BuildVision.UnitTests.csproj | 5 ++ .../BuildEventContextExtensionsTests.cs | 51 +++++++++++ .../BuildMessageEventArgsExtensionsTests.cs | 48 ++++++++++ 31 files changed, 321 insertions(+), 220 deletions(-) create mode 100644 src/BuildVision/Constants/EnvDTECodeModelLanguageConstants2.cs rename src/BuildVision/{Helpers => Constants}/EnvDTEProjectKinds.cs (100%) rename src/BuildVision/{Core => Constants}/PackageGuids.cs (100%) rename src/BuildVision/{Core => Constants}/PackageIds.cs (100%) delete mode 100644 src/BuildVision/Helpers/ProjectItemsExtensions.cs rename src/BuildVision/{Helpers/ToolWindowManager.cs => Tool/Building/WindowStateManager.cs} (59%) create mode 100644 test/BuildVision.UnitTests/Helpers/BuildEventContextExtensionsTests.cs create mode 100644 test/BuildVision.UnitTests/Helpers/BuildMessageEventArgsExtensionsTests.cs diff --git a/src/BuildVision.Contracts/Models/IBuildInformationModel.cs b/src/BuildVision.Contracts/Models/IBuildInformationModel.cs index 78bf0bcd..d784f83f 100644 --- a/src/BuildVision.Contracts/Models/IBuildInformationModel.cs +++ b/src/BuildVision.Contracts/Models/IBuildInformationModel.cs @@ -1,8 +1,9 @@ using System; +using System.ComponentModel; namespace BuildVision.Contracts.Models { - public interface IBuildInformationModel + public interface IBuildInformationModel : INotifyPropertyChanged { BuildActions BuildAction { get; set; } DateTime? BuildFinishTime { get; set; } diff --git a/src/BuildVision.UI/Components/ControlView.xaml b/src/BuildVision.UI/Components/ControlView.xaml index 26d27e54..4502913b 100644 --- a/src/BuildVision.UI/Components/ControlView.xaml +++ b/src/BuildVision.UI/Components/ControlView.xaml @@ -174,11 +174,14 @@ - + +