Exemple #1
0
        public void Convert_NegativeTestcases(string testFolderName, Type expectedException)
        {
            string input = File.ReadAllText(
                Path.Combine(GetPathToExceptionTestCasesFolders(), testFolderName, "input.txt"));

            var target = new FootnotesConverter();

            Assert.Throws(expectedException, () => target.Convert(input));
        }
Exemple #2
0
        public void ConvertPositiveTestcases(string testFolderName)
        {
            string testFolderPath = Path.Combine(GetPathToPositiveTestCasesFolders(), testFolderName);


            string input  = File.ReadAllText(Path.Combine(testFolderPath, "input.txt"));
            var    target = new FootnotesConverter();
            var    res    = target.Convert(input);

            Assert.Equal(
                File.ReadAllText(Path.Combine(testFolderPath, "output.txt")),
                res);
        }