Example #1
0
        public void DialogViewModelFactory_CreateServerDialogAbout_Create_ReturnsDialog()
        {
            //------------Setup for test--------------------------
            var  dialogViewModelFactory = new DialogViewModelFactory();
            bool called = false;

            dialogViewModelFactory.SetupServerDialogAction = (model, s, arg3, arg4) => { called = true; Assert.AreEqual("1,2,3,4,5", arg4); };
            dialogViewModelFactory.CreateServerAboutDialog("1,2,3,4,5");
            Assert.IsTrue(called);
            //------------Assert Results-------------------------
        }
Example #2
0
        // ReSharper disable InconsistentNaming
        public void DialogViewModelFactory_CreateDialogAbout_Create_ReturnsDialog()

        {
            //------------Setup for test--------------------------
            var  dialogViewModelFactory = new DialogViewModelFactory();
            bool called = false;

            dialogViewModelFactory.SetupDialogAction = (model, s, arg3) => { called = true; };
            dialogViewModelFactory.CreateAboutDialog();
            Assert.IsTrue(called);
            //------------Assert Results-------------------------
        }