Esempio n. 1
0
        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>());
        }
Esempio n. 2
0
        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>());
        }