コード例 #1
0
ファイル: AmpAssert.cs プロジェクト: yasen-yankov/Html2Amp
        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);
            }
        }