diff options
author | Keting Yang <> | 2020-01-08 23:23:26 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-01-09 13:21:46 +0300 |
commit | cc9a934fc0e5a6aab0429f3d68bcf25243c242a3 (patch) | |
tree | ec340e5d21f2ce92d429b44e775d476cc747d38d /main/src/addins/MonoDevelop.UnitTesting | |
parent | 3e85d3e095948544f8b6e8da0c2932ff00c6749b (diff) |
Fix the nesting logic for NUnit Test:
[1] Allow setting the title of a unit test
[2] Handle the nesting logic while building the tests (get rid of the use of CanMergeWithParent, which is only used in TestNodeBuilder)
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs index da956f00ae..746c54e39d 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs @@ -43,6 +43,7 @@ namespace MonoDevelop.UnitTesting public abstract class UnitTest: IDisposable { string name; + string title; IResultsStore resultsStore; internal UnitTestResult lastResult; UnitTest parent; @@ -190,7 +191,8 @@ namespace MonoDevelop.UnitTesting } public virtual string Title { - get { return Name; } + get { return title ?? name; } + set { title = value; } } public TestStatus Status { |