public void GetChildFileTest()
        {
            string    name   = baseStockTestName;
            BaseStock target = new BaseStock(name);
            string    name1  = "File";

            BaseStock.Initializer func = delegate(FileStream s) { ++initializerFuncCounter; };
            FileStream            actual;

            actual = target.GetChildFile(name1, func);
            Assert.AreEqual(actual.Name, appDataPath + "\\" + baseStockTestName + "\\" + name1, "DAMN! Returned FileStream has different name than it should.");
            Assert.IsTrue(initializerFuncCounter == 1, "DAMN! Initializer functions was not called.");
            actual.Close();
        }
        public void DeleteChildFileTest()
        {
            string    name   = baseStockTestName;
            BaseStock target = new BaseStock(name);
            string    name1  = "File";

            BaseStock.Initializer func = delegate(FileStream s) { ++initializerFuncCounter; };
            FileStream            actual;

            actual = target.GetChildFile(name1);
            actual.Close();
            target.DeleteChildFile(name1);
            Assert.IsFalse(File.Exists(appDataPath + "\\" + baseStockTestName + "\\" + name1), "GOSH! Child file exist after deletion.");
        }