Пример #1
0
        public void RedoTest()
        {
            DocumentCommand discmd = null;                                        // TODO: Initialize to an appropriate value
            DocumentCommand undcmd = null;                                        // TODO: Initialize to an appropriate value
            DocumentCommand redcmd = null;                                        // TODO: Initialize to an appropriate value
            DocumentInvoker target = new DocumentInvoker(discmd, undcmd, redcmd); // TODO: Initialize to an appropriate value

            target.Redo();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Пример #2
0
        public void DisplayTest()
        {
            Document doc = new Document();


            DocumentCommand discmd = new DisplayCommand(doc);

            DocumentCommand undcmd = new UndoCommand(doc);

            DocumentCommand redcmd = new RedoCommand(doc);


            DocumentInvoker invoker = new DocumentInvoker(discmd, undcmd, redcmd);

            invoker.Display();
        }