Example #1
0
        public void Verify_NoExecution_Terminated_BeforeCreation()
        {
            var vbeEvents = ArrangeVbeEvents();

            VbeEvents.Terminate();
            var command = ArranageComCommand(vbeEvents);

            command.Execute(null);

            command.VerifyOnExecute(Times.Never());
        }
Example #2
0
        public void Verify_Execution_Among_Instances()
        {
            var vbeEvents = ArrangeVbeEvents();

            var command1 = ArranageComCommand(vbeEvents);

            command1.Execute(null);
            VbeEvents.Terminate();
            var command2 = ArranageComCommand(vbeEvents);

            command2.Execute(null);

            command1.VerifyOnExecute(Times.Once());
            command2.VerifyOnExecute(Times.Never());
        }