Ejemplo n.º 1
0
        public void ShowWarning_ShouldCall_Modals_Show()
        {
            var dialogs = new ProtonVPN.Modals.Dialogs.Dialogs(_modals, _warningViewModel, _questionViewModel);

            dialogs.ShowWarning("");

            _modals.Received(1).Show <WarningModalViewModel>();
        }
Ejemplo n.º 2
0
        public void ShowWarning_ShouldSet_WarningModalViewModel_Message()
        {
            const string message = "Message test text";
            var          dialogs = new ProtonVPN.Modals.Dialogs.Dialogs(_modals, _warningViewModel, _questionViewModel);

            dialogs.ShowWarning(message);

            _warningViewModel.Message.Should().Be(message);
        }