diff options
author | Keting Yang <ketyang@microsoft.com> | 2019-12-04 00:20:04 +0300 |
---|---|---|
committer | Keting Yang <ketyang@microsoft.com> | 2019-12-04 00:20:04 +0300 |
commit | a5c735c46d437e929b2def822102ecd838efa662 (patch) | |
tree | 65c44d8b18fb1048cea63b20e53904f4f56abb59 /main/src/addins/MonoDevelop.UnitTesting | |
parent | 1d3a221dea09d051a03571c310a37a7c68c59895 (diff) |
Revert "Change the nesting logic"
This reverts commit 1d3a221dea09d051a03571c310a37a7c68c59895.
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestNamespaceTestGroup.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestNamespaceTestGroup.cs b/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestNamespaceTestGroup.cs index c53c8f8efc..1f0fe79440 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestNamespaceTestGroup.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestNamespaceTestGroup.cs @@ -66,16 +66,16 @@ namespace MonoDevelop.UnitTesting.VsTest { string childNamespace = VsTestTest.FixtureTypeNamespace; - if(currentNamespace == null || currentNamespace.Name != childNamespace) { + if(currentNamespace.Name != childNamespace) { currentNamespace = new VsTestNamespaceTestGroup (testRunner, currentNamespace, Project, childNamespace); currentNamespace.AddTest (VsTestTest); Tests.Add (currentNamespace); } else { - if(currentNamespace.currentClass == null || currentNamespace.currentClass.FixtureTypeName != VsTestTest.FixtureTypeName) { + if (currentClass == null || currentClass.FixtureTypeName != VsTestTest.FixtureTypeName) { currentClass = new VsTestTestClass (testRunner, Project, VsTestTest); - currentNamespace.Tests.Add (currentClass); + Tests.Add (currentClass); } - currentNamespace.currentClass.Tests.Add (VsTestTest); + currentClass.Tests.Add (VsTestTest); } } |