Dev2.Core.Tests.Dialogs.ProgressDialogViewModelTests.ProgressDialogViewModel_Show_Executed_CallsCloseAction C# (CSharp) Method

ProgressDialogViewModel_Show_Executed_CallsCloseAction() private method

        public void ProgressDialogViewModel_Show_Executed_CallsCloseAction()
        {
            //------------Setup for test--------------------------
            var showActionCalled = false;
            var vm = new ProgressDialogViewModel(() => { }, () => { showActionCalled = true;}, () => {});
            //------------Execute Test---------------------------
            vm.Show();
            //------------Assert Results-------------------------
            Assert.IsTrue(showActionCalled);
        }