Пример #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>());
        }
Пример #2
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>());
        }
Пример #3
0
    public void RunShouldCallXdtTransform(IXdtTransformEngine xdt, IFilePathResolver path, ITransformsProvider transform)
    {
      var postStep = new XmlTransformAction(xdt, path, transform);
      transform.GetTransformsByLayer(Arg.Any<string>()).Returns(new List<string>() {"web.config.transform"});

      //act
      postStep.Run(new NameValueCollection());
      xdt.Received().ApplyConfigTransformation(Arg.Any<string>(), Arg.Any<string>(), Arg.Any<string>());
    }
        public void RunShouldCallXdtTransform(IXdtTransformEngine xdt, IFilePathResolver path, ITransformsProvider transform)
        {
            var postStep = new XmlTransformAction(xdt, path, transform);

            transform.GetTransformsByLayer(Arg.Any <string>()).Returns(new List <string>()
            {
                "web.config.transform"
            });

            //act
            postStep.Run(new NameValueCollection());
            xdt.Received().ApplyConfigTransformation(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <string>());
        }