1- using System ;
2- using System . Linq ;
3- using System . Threading . Tasks ;
4- using System . Windows ;
51using Prism . Navigation . Regions ;
62using Prism . Navigation . Regions . Behaviors ;
73using Prism . Wpf . Tests . Mocks ;
@@ -42,8 +38,8 @@ public void RegionWillNotGetCreatedTwiceWhenThereAreMoreRegions()
4238 var adapter = new MockRegionAdapter ( ) ;
4339 adapter . Accessor = accessor ;
4440
45- var behavior1 = this . GetBehavior ( control1 , accessor , adapter ) ;
46- var behavior2 = this . GetBehavior ( control2 , accessor , adapter ) ;
41+ var behavior1 = GetBehavior ( control1 , accessor , adapter ) ;
42+ var behavior2 = GetBehavior ( control2 , accessor , adapter ) ;
4743
4844 behavior1 . Attach ( ) ;
4945 behavior2 . Attach ( ) ;
@@ -68,9 +64,9 @@ public void RegionGetsCreatedWhenAccessingRegions()
6864 GetRegionName = d => "myRegionName"
6965 } ;
7066
71- var behavior1 = this . GetBehavior ( control1 , accessor ) ;
67+ var behavior1 = GetBehavior ( control1 , accessor ) ;
7268 behavior1 . Attach ( ) ;
73- var behavior2 = this . GetBehavior ( control2 , accessor ) ;
69+ var behavior2 = GetBehavior ( control2 , accessor ) ;
7470 behavior2 . Attach ( ) ;
7571
7672 accessor . UpdateRegions ( ) ;
@@ -91,7 +87,7 @@ public void RegionDoesNotGetCreatedTwiceWhenUpdatingRegions()
9187 GetRegionName = d => "myRegionName"
9288 } ;
9389
94- var behavior = this . GetBehavior ( control , accessor ) ;
90+ var behavior = GetBehavior ( control , accessor ) ;
9591 behavior . Attach ( ) ;
9692 accessor . UpdateRegions ( ) ;
9793 IRegion region = RegionManager . GetObservableRegion ( control ) . Value ;
@@ -112,7 +108,7 @@ public async Task BehaviorDoesNotPreventControlFromBeingGarbageCollected()
112108 GetRegionName = d => "myRegionName"
113109 } ;
114110
115- var behavior = this . GetBehavior ( control , accessor ) ;
111+ var behavior = GetBehavior ( control , accessor ) ;
116112 behavior . Attach ( ) ;
117113
118114 Assert . True ( controlWeakReference . IsAlive ) ;
@@ -136,7 +132,7 @@ public async Task BehaviorDoesNotPreventControlFromBeingGarbageCollectedWhenRegi
136132 GetRegionName = d => "myRegionName"
137133 } ;
138134
139- var behavior = this . GetBehavior ( control , accessor ) ;
135+ var behavior = GetBehavior ( control , accessor ) ;
140136 behavior . Attach ( ) ;
141137 accessor . UpdateRegions ( ) ;
142138
@@ -159,7 +155,7 @@ public void BehaviorShouldUnhookEventWhenDetaching()
159155 {
160156 GetRegionName = d => "myRegionName" ,
161157 } ;
162- var behavior = this . GetBehavior ( control , accessor ) ;
158+ var behavior = GetBehavior ( control , accessor ) ;
163159 behavior . Attach ( ) ;
164160
165161 int startingCount = accessor . GetSubscribersCount ( ) ;
@@ -169,7 +165,7 @@ public void BehaviorShouldUnhookEventWhenDetaching()
169165 Assert . Equal < int > ( startingCount - 1 , accessor . GetSubscribersCount ( ) ) ;
170166 }
171167
172- [ StaFact ]
168+ [ StaFact ( ) ]
173169 public void ShouldCleanupBehaviorOnceRegionIsCreated ( )
174170 {
175171 var control = new MockFrameworkElement ( ) ;
@@ -180,7 +176,7 @@ public void ShouldCleanupBehaviorOnceRegionIsCreated()
180176 GetRegionName = d => "myRegionName"
181177 } ;
182178
183- var behavior = this . GetBehavior ( control , accessor ) ;
179+ var behavior = GetBehavior ( control , accessor ) ;
184180 WeakReference behaviorWeakReference = new WeakReference ( behavior ) ;
185181 behavior . Attach ( ) ;
186182 accessor . UpdateRegions ( ) ;
@@ -192,7 +188,7 @@ public void ShouldCleanupBehaviorOnceRegionIsCreated()
192188
193189 Assert . False ( behaviorWeakReference . IsAlive ) ;
194190
195- var behavior2 = this . GetBehavior ( control2 , accessor ) ;
191+ var behavior2 = GetBehavior ( control2 , accessor ) ;
196192 WeakReference behaviorWeakReference2 = new WeakReference ( behavior2 ) ;
197193 behavior2 . Attach ( ) ;
198194 accessor . UpdateRegions ( ) ;
0 commit comments