Bloom.web.controllers.PageTemplatesApiTests.GetBookTemplatePaths_NonBasicBookOriginal_BasicBookOfferedSecond C# (CSharp) Method

GetBookTemplatePaths_NonBasicBookOriginal_BasicBookOfferedSecond() private method

        public void GetBookTemplatePaths_NonBasicBookOriginal_BasicBookOfferedSecond()
        {
            var pathToCurrentTemplateHtml = "c:\\some\\templates\\here\\originalTemplate.html";
            var pathToBasicBook = "c:\\installation dir\\templates\\basic book.html";
            var pathToAlphabet = "c:\\some\\templates\\here\\alphabet template.html";
            var pathToZebra = "c:\\some\\templates\\here\\zebras template.html";
            var sourceBookPaths = new [] {  pathToAlphabet,
                    "c:\\installation dir\\templates\\some book that is not a template at all.html",
                    pathToBasicBook,
                    pathToCurrentTemplateHtml,
                        pathToZebra
                };
            var result = PageTemplatesApi.GetBookTemplatePaths(pathToCurrentTemplateHtml, sourceBookPaths);
            Assert.AreEqual(4, result.Count);
            Assert.AreEqual(0, result.IndexOf(pathToCurrentTemplateHtml), "Template used to make the book should be first in the list.");
            Assert.AreEqual(1, result.IndexOf(pathToBasicBook), "Basic Book should move ahead of Arithmetic to be second in list when it is not first.");
            Assert.AreEqual(2, result.IndexOf(pathToAlphabet), "Arithmetic should be third.");
            Assert.AreEqual(3, result.IndexOf(pathToZebra), "Zebra should be last.");
        }