public static void IsValidAmp(string testName) { string errors; string ampFilePath = TestDataProvider.CreateAmpFile(testName); var result = new AmpValidatorRunner().RunValidator(ampFilePath, out errors); if (result == AmpValidationResult.Fail) { Assert.Fail("The AMP validation faild with following erros: {0}{1}", Environment.NewLine, errors); } }