From 458a408ba884679187b664b28b93a63672add068 Mon Sep 17 00:00:00 2001 From: Luka Grabarevic Date: Thu, 19 Apr 2018 14:13:15 +0200 Subject: [PATCH] changed test run test names (again) --- BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs | 2 +- .../Converter/TestRunToStackedItemsConverter.cs | 4 ++-- BuildsAppReborn.Contracts/Models/ITestRun.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs b/BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs index 52ab1a6..648e705 100644 --- a/BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs +++ b/BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs @@ -36,7 +36,7 @@ internal abstract class TfsTestRun : ITestRun public Int32 TotalTests { get; private set; } [JsonProperty("unanalyzedTests")] - public Int32 UnanalyzedTests { get; private set; } + public Int32 FailedTests { get; private set; } #endregion } diff --git a/BuildsAppReborn.Client/Converter/TestRunToStackedItemsConverter.cs b/BuildsAppReborn.Client/Converter/TestRunToStackedItemsConverter.cs index f5f7472..53b71da 100644 --- a/BuildsAppReborn.Client/Converter/TestRunToStackedItemsConverter.cs +++ b/BuildsAppReborn.Client/Converter/TestRunToStackedItemsConverter.cs @@ -23,10 +23,10 @@ public Object Convert(Object value, Type targetType, Object parameter, CultureIn var stackedItems = new List(); - stackedItems.Add(new StackedItem {Value = testRun.IncompleteTests, Title = "Incomplete Tests", Color = Brushes.Red, Icon = IconProvider.FailIcon}); + stackedItems.Add(new StackedItem {Value = testRun.FailedTests, Title = "Failed Tests", Color = Brushes.Red, Icon = IconProvider.FailIcon}); stackedItems.Add(new StackedItem {Value = testRun.NotApplicableTests, Title = "Not Applicable Tests", Color = Brushes.Yellow, Icon = IconProvider.UnknownIcon}); stackedItems.Add(new StackedItem {Value = testRun.PassedTests, Title = "Passed Tests", Color = Brushes.Green, Icon = IconProvider.SuccessIcon}); - stackedItems.Add(new StackedItem {Value = testRun.UnanalyzedTests, Title = "Unanalyzed Tests", Color = Brushes.Blue, Icon = IconProvider.LoadingIcon}); + stackedItems.Add(new StackedItem {Value = testRun.IncompleteTests, Title = "Incomplete Tests", Color = Brushes.Blue, Icon = IconProvider.LoadingIcon}); return new StackedItemCollection(stackedItems) {TotalCount = testRun.TotalTests, Title = "Total Tests"}; } diff --git a/BuildsAppReborn.Contracts/Models/ITestRun.cs b/BuildsAppReborn.Contracts/Models/ITestRun.cs index a43780f..c66e51e 100644 --- a/BuildsAppReborn.Contracts/Models/ITestRun.cs +++ b/BuildsAppReborn.Contracts/Models/ITestRun.cs @@ -7,10 +7,12 @@ public interface ITestRun : IObjectItem, IWebItem { #region Public Properties - Int32 IncompleteTests { get; } + Int32 FailedTests { get; } Int32 Id { get; } + Int32 IncompleteTests { get; } + String Name { get; } Int32 NotApplicableTests { get; } @@ -21,8 +23,6 @@ public interface ITestRun : IObjectItem, IWebItem Int32 TotalTests { get; } - Int32 UnanalyzedTests { get; } - #endregion } } \ No newline at end of file