public void AddItemAtEnd()
        {
            SortedFolderEntries sfe  = SetupDefaultEntries();
            LazyUTF8String      name = ConstructLazyUTF8String("{{shouldbeattheend");

            sfe.AddFolder(name);
            sfe[defaultFiles.Length + defaultFolders.Length].Name.ShouldEqual(name, "Item added at incorrect index.");
        }
        public void AddItemAtTheBeginning()
        {
            SortedFolderEntries sfe  = SetupDefaultEntries();
            LazyUTF8String      name = ConstructLazyUTF8String("((shouldbeatthestart");

            sfe.AddFolder(name);
            sfe[0].Name.ShouldEqual(name, "Item added at incorrect index.");
        }
 private static void AddFolders(SortedFolderEntries entries, params string[] names)
 {
     for (int i = 0; i < names.Length; i++)
     {
         LazyUTF8String entryString = ConstructLazyUTF8String(names[i]);
         entries.AddFolder(entryString);
     }
 }