Пример #1
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>());
        }
Пример #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>());
        }
        public void RunShouldNotCallXdtTransformIfTransformFileIsMissing(IXdtTransformEngine xdt, IFilePathResolver path, ITransformsProvider transform)
        {
            path.MapPath(Arg.Any <string>()).Returns((string)null);
            transform.GetTransformsByLayer(Arg.Any <string>()).Returns(new List <string>());
            var postStep = new XmlTransformAction(xdt, path, transform);

            //act
            postStep.Run(new NameValueCollection());
            xdt.DidNotReceive().ApplyConfigTransformation(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <string>());
        }
Пример #4
0
    public void RunShouldNotCallXdtTransformIfTransformFileIsMissing(IXdtTransformEngine xdt, IFilePathResolver path, ITransformsProvider transform)
    {
      path.MapPath(Arg.Any<string>()).Returns((string)null);
      transform.GetTransformsByLayer(Arg.Any<string>()).Returns(new List<string>());
      var postStep = new XmlTransformAction(xdt, path, transform);

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