public void EntryFoundMatchingCase()
        {
            SortedFolderEntries sfe      = SetupDefaultEntries();
            LazyUTF8String      findName = ConstructLazyUTF8String("folder");

            sfe.TryGetValue(findName, out FolderEntryData folderEntryData).ShouldBeTrue();
            folderEntryData.ShouldNotBeNull();
        }
        public void EntryNotFound()
        {
            SortedFolderEntries sfe      = SetupDefaultEntries();
            LazyUTF8String      findName = ConstructLazyUTF8String("Anything");

            sfe.TryGetValue(findName, out FolderEntryData folderEntryData).ShouldBeFalse();
            folderEntryData.ShouldBeNull();
        }
        private static void ValidateFolder(SortedFolderEntries entries, LazyUTF8String entryToValidate, bool isIncludedValue)
        {
            entries.TryGetValue(entryToValidate, out FolderEntryData folderEntryData).ShouldBeTrue();
            folderEntryData.ShouldNotBeNull();
            folderEntryData.IsFolder.ShouldBeTrue();

            FolderData folderData = folderEntryData as FolderData;

            folderData.ShouldNotBeNull();
            folderData.IsIncluded.ShouldEqual(isIncludedValue, "IsIncluded does not match expected value.");
        }
 private static void AddFiles(SortedFolderEntries entries, params string[] names)
 {
     for (int i = 0; i < names.Length; i++)
     {
         LazyUTF8String entryString = ConstructLazyUTF8String(names[i]);
         entries.AddFile(entryString, new byte[20]);
         entries.TryGetValue(entryString, out FolderEntryData folderEntryData).ShouldBeTrue();
         folderEntryData.ShouldNotBeNull();
         folderEntryData.IsFolder.ShouldBeFalse();
     }
 }