Example #1
0
        public void HandlesNullOptionDetails()
        {
            TestTask testTask = Substitute.ForPartsOf <TestTask>();

            testTask.TestGetGeneralHelp().Returns("GeneralHelp");
            ITaskInteraction interaction = Substitute.For <ITaskInteraction>();

            testTask.OutputUsage(interaction);
            testTask.Received(2).TestGetGeneralHelp();
            testTask.Received(1).TestGetOptionDetails();
        }
Example #2
0
        public void HandlesNullHelp()
        {
            TestTask         testTask    = Substitute.ForPartsOf <TestTask>();
            ITaskInteraction interaction = Substitute.For <ITaskInteraction>();

            testTask.OutputUsage(interaction);
            testTask.Received(1).TestGetGeneralHelp();
        }