Exemple #1
0
        public void CaptureEncodingAndExtension()
        {
            string input          = InputTemplate_CaptureEncodingAndExtension.NormalizeNewlines();
            string output         = Preprocess(input);
            string expectedOutput = TemplatingEngineHelper.CleanCodeDom(Output_CaptureEncodingAndExtension.NormalizeNewlines(), "\n");

            Assert.AreEqual(expectedOutput, output, output);
        }
Exemple #2
0
        public void CaptureEncodingAndExtension()
        {
            string input          = InputTemplate_CaptureEncodingAndExtension;
            string output         = Preprocess(input);
            string expectedOutput = TemplatingEngineHelper.CleanCodeDom(Output_CaptureEncodingAndExtension.Replace("\\n", Environment.NewLine.Replace("\r", "\\r").Replace("\n", "\\n")), "\n");

            Assert.AreEqual(expectedOutput, output, output);
        }