public void DictionaryLibrarySaveToPageTest()
        {
            const string tableName = "replace";

            const string pageContent =
                "comments\n\n" +
                "!| Dictionary | not ok |\n| Key | Value |\n| key1 | value 1 |\n| key2 | value 2 |\n| key3 | value 3 |\n\nmore comments\n\n" +
                "!| Dictionary | replace |\n| Key | Value |\n| key4 | value 4 |\n| key5 | value 5 |\n| key6 | value 6 |\n\n yet more comments\n\n" +
                "!| Dictionary | not ok 2 |\n| Key | Value |\n| 7 | 8 |\n\nand even more comments\n";

            var saver = new DictionaryLibrary
            {
                MyFitNessePage = new FitNessePageMock(pageContent),
                PageRoot       = TestPageRoot
            };

            saver.AddValue("key9", "value 9");
            saver.AddValue("key10", "value 10");
            saver.AddValue("key11", "value 11");
            saver.SaveTableToPage(tableName, PageName);
            var expected = PageDataRequest + DeletePageRequest + AddChildPartialRequest +
                           "comments\n\n" +
                           "!| Dictionary | not ok |\n| Key | Value |\n| key1 | value 1 |\n| key2 | value 2 |\n| key3 | value 3 |\n\nmore comments\n\n" +
                           DictionaryHeader(tableName) + "|key9|value 9|\n|key10|value 10|\n|key11|value 11|\n\n yet more comments\n\n" +
                           "!| Dictionary | not ok 2 |\n| Key | Value |\n| 7 | 8 |\n\nand even more comments\n" + FitNessePageTest.UriSeparator;

            Assert.AreEqual(expected, (saver.MyFitNessePage as FitNessePageMock)?.UsedUri);
        }
        public void DictionaryLibraryNewPageTest()
        {
            const string tableName = "TestTable";
            var          lib       = new DictionaryLibrary
            {
                MyFitNessePage = new FitNessePageMock(null),
                PageRoot       = TestPageRoot
            };

            lib.AddValue("key", "value");
            lib.SaveTableToPage(tableName, PageName);
            var expected = PageDataRequest + AddChildPartialRequest +
                           DictionaryHeader(tableName) + "|key|value|\n" + FitNessePageTest.UriSeparator;

            Assert.AreEqual(expected, (lib.MyFitNessePage as FitNessePageMock)?.UsedUri);
        }