Пример #1
0
        public void GetReadme_ReadTickets()
        {
            var readme = ReadmeReader.GetReadme(readmePath);


            Assert.IsNotEmpty(readme.Tickets);
            Assert.AreEqual(2, readme.Tickets.Count);
        }
Пример #2
0
        public void GetReadme_FileExist()
        {
            var readme = ReadmeReader.GetReadme(readmePath);

            Assert.IsNotNull(readme);

            Assert.AreEqual("6.67.0", readme.Version);
        }
Пример #3
0
        private static void PrepareWord()
        {
            Console.WriteLine("PrepareWord");
            Console.WriteLine(System.Environment.OSVersion);

            var readme    = ReadmeReader.GetReadme(readmePath);
            var variables = ReadmeAdapter.Adapt(readme);

            WordEditor.CreateWordDocumentFromTemplateAndReplace(templatePath, destinationPath, variables);
        }
        public void Adapt_CleanPlaceHolder()
        {
            var readme = ReadmeReader.GetReadme(ReadmeReaderTests.readmePath);

            var result = ReadmeAdapter.Adapt(readme);


            Assert.AreEqual(string.Empty, result["@TICKET10"]);


            Assert.AreNotEqual(string.Empty, result["@TICKET_NAME1"]);



            Assert.AreEqual("10582", result["@TICKET1"]);
        }
        public void AdaptTest()
        {
            var readme = ReadmeReader.GetReadme(ReadmeReaderTests.readmePath);

            Assert.AreEqual(4, ReadmeAdapter.AdaptTickets(readme).Count);
        }