private void TestAddExtention(string name, string extention, StorageDriverFacade driver)
        {
            driver.Exists(name);
            driver.Read(name);
            driver.Remove(name);
            driver.Write(name);
            driver.GetLength(name);

            _baseDriver.Received(1).Exists(Arg.Is <string>(x => CheckResultName(x, name, extention)));
            _baseDriver.Received(1).Read(Arg.Is <string>(x => CheckResultName(x, name, extention)));
            _baseDriver.Received(1).Remove(Arg.Is <string>(x => CheckResultName(x, name, extention)));
            _baseDriver.Received(1).Write(Arg.Is <string>(x => CheckResultName(x, name, extention)));
            _baseDriver.Received(1).GetLength(Arg.Is <string>(x => CheckResultName(x, name, extention)));
        }
        public void AddExtentionRecursively(string name, string extention)
        {
            var driver = new StorageDriverFacade(Ext, GetDriverByExtention(extention));

            TestAddExtention(name, Ext, driver);
        }
 public void TestSetup()
 {
     _baseDriver     = Substitute.For <IStorageDriver>();
     _driver         = new StorageDriverFacade(Ext, _baseDriver);
     _driverEmptyExt = new StorageDriverFacade("", _baseDriver);
 }