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(); }
public void HandlesNullHelp() { TestTask testTask = Substitute.ForPartsOf <TestTask>(); ITaskInteraction interaction = Substitute.For <ITaskInteraction>(); testTask.OutputUsage(interaction); testTask.Received(1).TestGetGeneralHelp(); }