public void TestClear()
        {
            Dictionary <long, byte[]> data = new Dictionary <long, byte[]>();

            using (TempFile file = new TempFile())
                using (FragmentedFile ff = FragmentedFile.CreateNew(file.TempPath, 512, 100, 2, FragmentedFile.OptionsDefault))
                {
                    //Create:
                    for (int i = 0; i < 256; i++)
                    {
                        data.Add(ff.Create(), null);
                    }
                    //Enumerate:
                    int count = 0;
                    foreach (KeyValuePair <long, Stream> fragment in ff.ForeachBlock(true, true, null))
                    {
                        count++;
                    }
                    Assert.AreEqual(256, count);
                    ff.Clear();
                    //Empty?
                    foreach (KeyValuePair <long, Stream> fragment in ff.ForeachBlock(true, true, null))
                    {
                        Assert.Fail();
                    }
                }
        }