public void ShowWarning_ShouldCall_Modals_Show() { var dialogs = new ProtonVPN.Modals.Dialogs.Dialogs(_modals, _warningViewModel, _questionViewModel); dialogs.ShowWarning(""); _modals.Received(1).Show <WarningModalViewModel>(); }
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); }