public void TestCheckNeeds__False() { needsChecker.CheckNeeds("mod1").Returns(false); Assert.False(passSpecifier.CheckNeeds(needsChecker, progress)); progress.Received().NeedsUnsatisfiedFor(urlConfig); }
public bool CheckNeeds(INeedsChecker needsChecker, IPatchProgress progress) { if (needsChecker == null) { throw new ArgumentNullException(nameof(needsChecker)); } if (progress == null) { throw new ArgumentNullException(nameof(progress)); } bool result = needsChecker.CheckNeeds(mod); if (!result) { progress.NeedsUnsatisfiedFor(urlConfig); } return(result); }