public void RunShouldCallXdtTransform(IXdtTransformEngine xdt, IFilePathResolver path) { var postStep = new PostStep(xdt, path); //act postStep.Run(null, null); xdt.Received(1).ApplyConfigTransformation(Arg.Any<string>(), Arg.Any<string>(), Arg.Any<string>()); }
public void RunShouldNotCallXdtTransformIfTransformFileIsMissing(IXdtTransformEngine xdt, IFilePathResolver path) { path.MapPath(Arg.Any<string>()).Returns((string)null); var postStep = new PostStep(xdt, path); //act postStep.Run(null, null); xdt.DidNotReceive().ApplyConfigTransformation(Arg.Any<string>(), Arg.Any<string>(), Arg.Any<string>()); }