public void UseMaskTrueDefaultMaskInsersion() { SetMainPage(); var dialogService = CreateDialogService(); DialogMock.ConstructorCallback = v => DialogLayout.SetUseMask(v, true); dialogService.ShowDialog(DialogMockViewName); var useMask = DialogLayout.GetUseMask(DialogMock.Current); Assert.NotNull(useMask); Assert.True(useMask.Value); var mainPage = _currentApp.MainPage as ContentPage; var layout = mainPage.Content as AbsoluteLayout; Assert.Equal(3, layout.Children.Count); }
public void UseMaskTrueDefaultMaskInsersion() { SetMainPage(); var dialogService = CreateDialogService(); DialogMock.ConstructorCallback = v => DialogLayout.SetUseMask(v, true); dialogService.ShowDialog(DialogMockViewName); var useMask = DialogLayout.GetUseMask(DialogMock.Current); Assert.NotNull(useMask); Assert.True(useMask.Value); Assert.Single(_currentApp.MainPage.Navigation.ModalStack); var dialogPage = _currentApp.MainPage.Navigation.ModalStack.First() as DialogPage; Assert.NotNull(dialogPage); var layout = dialogPage.Content as AbsoluteLayout; Assert.Equal(2, layout.Children.Count); }