File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
SysML2.NET.Tests/Extensions Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 2121namespace SysML2 . NET . Tests . Extensions
2222{
2323 using System ;
24- using Core . POCO . Core . Features ;
25- using Core . POCO . Core . Types ;
26- using Core . POCO . Systems . Parts ;
27- using NET . Extensions ;
24+
25+ using SysML2 . NET . Core . POCO . Core . Features ;
26+ using SysML2 . NET . Core . POCO . Core . Types ;
27+ using SysML2 . NET . Core . POCO . Systems . Parts ;
28+ using SysML2 . NET . Extensions ;
29+
2830 using NUnit . Framework ;
2931
3032 [ TestFixture ]
@@ -77,9 +79,12 @@ public void AssignOwnership_WithValidParameters_AssignsOwnershipCorrectly()
7779 {
7880 ElementExtensions . AssignOwnership ( source , bridgeRelationship , target ) ;
7981
80- Assert . That ( bridgeRelationship . OwningRelatedElement , Is . EqualTo ( source ) ) ;
81- Assert . That ( source . OwnedRelationship , Does . Contain ( bridgeRelationship ) ) ;
82- Assert . That ( bridgeRelationship . OwnedRelatedElement , Does . Contain ( target ) ) ;
82+ using ( Assert . EnterMultipleScope ( ) )
83+ {
84+ Assert . That ( bridgeRelationship . OwningRelatedElement , Is . EqualTo ( source ) ) ;
85+ Assert . That ( source . OwnedRelationship , Does . Contain ( bridgeRelationship ) ) ;
86+ Assert . That ( bridgeRelationship . OwnedRelatedElement , Does . Contain ( target ) ) ;
87+ }
8388 }
8489 }
8590}
You can’t perform that action at this time.
0 commit comments