public void ShouldMatchItsOptionString() { Func<DateSpan, string, string[], Meeting> meetingFactory = Substitute.For<Func<DateSpan, string, string[], Meeting>>(); IPlanner planner = Substitute.For<IPlanner>(); AddMeetingOption addMeetingOption = new AddMeetingOption(meetingFactory, planner); bool result = addMeetingOption.MatchesString(AddMeetingOption.AddMeetingOptionString); Assert.IsTrue(result); }
public void ShouldMatchItsOptionString() { IMeetingFactory meetingFactory = Substitute.For<IMeetingFactory>(); IPlanner planner = Substitute.For<IPlanner>(); ILogger logger = Substitute.For<ILogger>(); AddMeetingOption addMeetingOption = new AddMeetingOption(meetingFactory, planner, logger); bool result = addMeetingOption.MatchesString(AddMeetingOption.AddMeetingOptionString); Assert.IsTrue(result); }