public void CustomStyleUsedForMask() { SetMainPage(); var dialogService = CreateDialogService(); var style = new Style(typeof(BoxView)); DialogMock.ConstructorCallback = v => DialogLayout.SetMaskStyle(v, style); dialogService.ShowDialog(DialogMockViewName); var mainPage = _currentApp.MainPage as ContentPage; var layout = mainPage.Content as AbsoluteLayout; var mask = layout.Children[1]; Assert.Equal(style, mask.Style); }