File tree Expand file tree Collapse file tree 28 files changed +41
-43
lines changed
Expand file tree Collapse file tree 28 files changed +41
-43
lines changed Original file line number Diff line number Diff line change @@ -61,4 +61,4 @@ internal static ICommand CreateStopCameraPreviewCommand(BindableObject bindable)
6161 var cameraView = ( CameraView ) bindable ;
6262 return new Command ( _ => cameraView . StopCameraPreview ( ) ) ;
6363 }
64- }
64+ }
Original file line number Diff line number Diff line change @@ -173,8 +173,8 @@ void SetSystemBarsVisibility()
173173 | SystemUiFlags . Fullscreen
174174 | SystemUiFlags . Immersive ;
175175 }
176-
177- if ( windowInsetsControllerCompat is not null )
176+
177+ if ( windowInsetsControllerCompat is not null )
178178 {
179179 windowInsetsControllerCompat . Hide ( barTypes ) ;
180180 windowInsetsControllerCompat . SystemBarsBehavior = WindowInsetsControllerCompat . BehaviorShowTransientBarsBySwipe ;
@@ -195,12 +195,12 @@ void SetSystemBarsVisibility()
195195 currentWindow . DecorView . SystemUiFlags = ( SystemUiFlags ) defaultSystemUiVisibility ;
196196 }
197197
198- if ( windowInsetsControllerCompat is not null )
198+ if ( windowInsetsControllerCompat is not null )
199199 {
200200 windowInsetsControllerCompat . Show ( barTypes ) ;
201201 windowInsetsControllerCompat . SystemBarsBehavior = WindowInsetsControllerCompat . BehaviorDefault ;
202202 }
203-
203+
204204 WindowCompat . SetDecorFitsSystemWindows ( currentWindow , true ) ;
205205 }
206206 }
Original file line number Diff line number Diff line change 11using CommunityToolkit . Maui . Core ;
2- using CommunityToolkit . Maui . Services ;
32using CommunityToolkit . Maui . UnitTests . Mocks ;
43using CommunityToolkit . Maui . UnitTests . Services ;
54using FluentAssertions ;
6- using Xunit ;
75
86namespace CommunityToolkit . Maui . UnitTests ;
97
10- public abstract class BaseHandlerTest : BaseTest
8+ public abstract class BaseViewTest : BaseTest
119{
12- protected BaseHandlerTest ( )
10+ protected BaseViewTest ( )
1311 {
1412 InitializeServicesAndSetMockApplication ( out var serviceProvider ) ;
1513 ServiceProvider = serviceProvider ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void InvalidConvertBackValue_ShouldSuppressExceptionsInConverters_ShouldR
4545 }
4646}
4747
48- public abstract class ConverterTest < TConverter > : BaseHandlerTest where TConverter : ICommunityToolkitValueConverter , new ( )
48+ public abstract class ConverterTest < TConverter > : BaseViewTest where TConverter : ICommunityToolkitValueConverter , new ( )
4949{
5050 [ Fact ]
5151 public void InvalidConvertValue_ShouldThrowException ( )
Original file line number Diff line number Diff line change 55
66namespace CommunityToolkit . Maui . UnitTests . Essentials ;
77
8- public class AppThemeTests : BaseHandlerTest
8+ public class AppThemeTests : BaseViewTest
99{
1010 readonly Label label = new ( ) ;
1111 readonly Window window ;
Original file line number Diff line number Diff line change 99
1010namespace CommunityToolkit . Maui . UnitTests . Extensions ;
1111
12- public class PopupExtensionsTests : BaseHandlerTest
12+ public class PopupExtensionsTests : BaseViewTest
1313{
1414 const string shellParameterViewModelTextValue = "Hello World" ;
1515 static readonly Color shellParameterBackgroundColorValue = Colors . Green ;
Original file line number Diff line number Diff line change 44
55namespace CommunityToolkit . Maui . UnitTests . ImageSources ;
66
7- public class GravatarImageSourceTests : BaseHandlerTest
7+ public class GravatarImageSourceTests : BaseViewTest
88{
99 readonly TimeSpan cacheValidity = new ( 1 , 0 , 0 ) ;
1010 readonly bool cachingEnabled = false ;
Original file line number Diff line number Diff line change 77
88namespace CommunityToolkit . Maui . UnitTests . Services ;
99
10- public class PopupServiceTests : BaseHandlerTest
10+ public class PopupServiceTests : BaseViewTest
1111{
1212 readonly INavigation navigation ;
1313
Original file line number Diff line number Diff line change 55
66namespace CommunityToolkit . Maui . UnitTests . Views ;
77
8- public class AvatarViewImageTests : BaseHandlerTest
8+ public class AvatarViewImageTests : BaseViewTest
99{
1010 public AvatarViewImageTests ( )
1111 {
Original file line number Diff line number Diff line change 44
55namespace CommunityToolkit . Maui . UnitTests . Views ;
66
7- public class AvatarViewInterfaceTests : BaseHandlerTest
7+ public class AvatarViewInterfaceTests : BaseViewTest
88{
99 public AvatarViewInterfaceTests ( )
1010 {
You can’t perform that action at this time.
0 commit comments