예제 #1
0
        public void then_exception_occurs()
        {
            Action action = () =>
                            XmlTransformator.ApplyTransformation(this, "Web.config", "transformations.WrongTransformation.xml");

            action.Should().Throw <Exception>()
            .WithMessage("No attribute 'UnexistingAttribute' exists for the Match Locator");
        }
 public override void Act()
 {
     TransformedContent =
         XmlTransformator.ApplyTransformation(this, "Web.config", "transformations.CorrectTransformation.xml");
 }