public void TestExtractPatch__ProtoPatchNull() { UrlDir.UrlConfig patchConfig = UrlBuilder.CreateConfig("abc/def", new ConfigNode("NODE"), root); protoPatchBuilder.Build(patchConfig, Command.Insert, Arg.Any <ITagList>()).Returns(null, new ProtoPatch[0]); Assert.Null(patchExtractor.ExtractPatch(patchConfig)); needsChecker.DidNotReceiveWithAnyArgs().CheckNeedsExpression(null); AssertNoErrors(); progress.DidNotReceive().PatchAdded(); progress.DidNotReceiveWithAnyArgs().NeedsUnsatisfiedRoot(null); }
public void TestCheckNeeds() { passSpecifier.CheckNeeds(needsChecker, progress); needsChecker.DidNotReceiveWithAnyArgs().CheckNeeds(null); }