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>());
        }
        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>());
        }