protected void CopyStoreToTestDir(MockStore store) { foreach (string commit in store.Commits) { if (store.Has(commit)) /* Well it might have been deleted */ { using (Stream input = store.OpenInput(commit)) using (FileStream output = new FileStream(TestDir + commit, FileMode.Create)) { CopyStream(input, output); } } } }